processing.js rect() different border colors

I'm drawing a game grid with rect() and I'd like some borders of my rectangle have different colors.

exemple: I'd like a rectangle with left and right borders green but top and bottom borders blue, do you see a way ?



You can't color rect borders differently, but you can retrace your rect with separate lines:


Need Your Help

Visual Studio Performance Choice - ESXi or Vista?

visual-studio hardware productivity vmware virtualization

Following on from my earlier question, I have today ordered a 300GB VelociRaptor and 8GB of RAM for my home development rig (ASUS P5N-E with an E6600 chip).

In Excel, add 1 if not number, or else add the number

excel excel-formula

In excel, how do I write a formula that does the following:

How to download a webpage for offline viewing on Nexus 7

android tablet nexus-7

I have a webpage that I would like to view when I am not in a WIFI area on my Nexus 7 tablet.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.