Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
lisergio
lisergio's Profile
3
Posts
4
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
scroll text in small rect
[1 Reply]
26-Mar-2013 02:25 PM
Forum:
Programming Questions
hi.
I need to write 100 lines of numbers, but the space is small .
how I can make scroll for the white rect?
PFont f;
void setup ()
{
background(0,0,0);
size(500, 500);
f = createFont("Arial",26,true);
fill (255,255,255);
rect (0,0,200,500);
fill (0,0,0);
int cuenta=0;
int linea=20;
textFont(f,20);
while (cuenta <=100)
{
text(millis(), 10, linea);
linea = linea + 20;
cuenta++;
}
}
void draw ()
{
}
thanks
pressing button effect
[9 Replies]
25-Mar-2013 12:17 PM
Forum:
Programming Questions
hello.
I want to make an effect of pressing a button when you click with the mouse, but I can not do it.
I tried changing two images when clicked but does not work....
thanks for the help
PImage img1;
PImage img2;
void setup()
{
bacground (0,0,0);
size(100,100);
img1 = loadImage("button1.jpg"); // normal button
img2 = loadImage("button2.jpg"); // presed button
image (img1,0,0);
}
void draw()
{
}
void mousePressed()
{
if(mouseX >0 && mouseX<100 && mouseY>0 && mouseY<100)
{
image (img2,0,0);
delay(200);
image (img1,0,0)
}
Menu to Select the serial port.
[2 Replies]
14-Mar-2013 12:47 PM
Forum:
Core Library Questions
Good afternoon.
I have assembled a prototype timing control, and connects to the PC via Bluetooth, to display data using processing.
if we know what the serial port, no problem, it gets in the line of code and it works fine.
myPort = new Serial(this, Serial.list()[0], 9600);
is possible to make a menu to start the sketch, to select the serial port?
Sorry for my english.( google )
Thanks!
«Prev
Next »
Moderate user : lisergio
Forum