Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
kchahal
kchahal's Profile
4
Posts
7
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
class
[2 Replies]
26-May-2012 05:08 AM
Forum:
Programming Questions
i need to create a class for a grid (columns and rows) 11 colums, 11 rows
also if possible have letters running down the left hand side of whatever i want (mycolumn etc)
i have no idea how to use a class and do this
any help?
barcode
[5 Replies]
02-Apr-2012 03:29 AM
Forum:
Programming Questions
i need to make a barcode, right now i have this code:
void setup() {
size(400, 400);
background(255);
drawBarCode(50, 50, 100, 40);
drawBarCode(50, 150, 200, 40);
drawBarCode(50, 250, 300, 100);
}
void drawBarCode(int barX, int barY, int barWid, int barHei) {
rect(barX, barY, barWid, barHei);
int lineX = barX+barWid;
int lineY = barY+barHei;
for (int x =barX; barX<=barY;barX ++);
if (random (0, 2)>=1);
line(barX, barY, barX, lineY);
}
but as u can see theres only 1 line per rectangle, how can i make it so theres more lines
mouseClicking outside square
[5 Replies]
12-Mar-2012 01:28 AM
Forum:
General Discussion
i want to make a circle appear on the window everytime i click the window
but i also have a square on the window
how do i make it that the circle only appears if i click outside the square
also,
from what iv done so far, when the circle appears, it only appears once and follows the mouse
how do i make it appear whenever i click the screen, and stop it from following the mouse?
thankyou for any help!!!
Ellipse fade
[4 Replies]
10-Mar-2012 12:06 AM
Forum:
General Discussion
I need to make a code so that when i click the window, a red circle appears and gets bigger and bigger until it fades away.
Ive figured out the mosueclicked part.. -.-
But how do i get the circle to appear and fade away?
«Prev
Next »
Moderate user : kchahal
Forum