Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
ri0331rodriguez
ri0331rodriguez's Profile
3
Posts
1
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
An extrange "error"
[2 Replies]
27-Jul-2011 08:12 AM
Forum:
Programming Questions
Hello!
I was creating a little program, and i had a very extrange error.
This code runs perfectly:
void setup()
{
size(600,600);
background(255);
rectMode(CORNERS);
}
void draw()
{
stroke(0);
rect(200, 175, 400, 575);
stroke(200);
for(int x = 210; x < 400; x += 10)
{
line(x, 175, x, 575);
//println(x);
}
for(int y = 185; y < 575; y += 10)
{
line(200, y, 400, y);
//println(y);
}
}
but in this one, which is the same, it doesn´t draw the grid:
void setup()
{
size(600,600);
background(255);
rectMode(CORNERS);
}
void draw()
{
stroke(200);
for(int x = 210; x < 400; x += 10)
{
line(x, 175, x, 575);
//println(x);
}
for(int y = 185; y < 575; y += 10)
{
line(200, y, 400, y);
//println(y);
}
stroke(0);
rect(200, 175, 400, 575);
}
Does anyone know why?
Thanks!
Has someone OGLE?
[1 Reply]
19-Feb-2011 09:50 AM
Forum:
Contributed Library Questions
hello!
I read a post of how to export 3D printings in Processing (
http://www.michaelang.com/3d-printing-from-processing
) and I want to try it, but it looks like the page of OGLE is dead :S
Has someone the OGLE installer or a better way to take a 3D scene in processing?
int[][] to string[] ?
[3 Replies]
15-Feb-2011 04:12 PM
Forum:
Programming Questions
Hi everyone!
I want to save in a txt file some data stored in a "map", a bidimentional array, e.g. :
1 0 1
0 0 1
1 1 0
I want to convert this to an array of strings, but i cant access each grid in the string array, what should i do?
I thought that i could take each row of ints and copy it like a string in the string array... but i dont know how.
PS: Sorry for my english, i cant speak it very well :P
«Prev
Next »
Moderate user : ri0331rodriguez
Forum