mirror of
https://github.com/processing/processing4.git
synced 2026-02-10 09:09:26 +01:00
31 lines
458 B
Java
Executable File
31 lines
458 B
Java
Executable File
package test;
|
|
import processing.core.*;
|
|
|
|
/**
|
|
*
|
|
* @author Francis Li
|
|
*/
|
|
public class Linear extends PMIDlet {
|
|
// Linear
|
|
// by REAS <http://www.groupc.net>
|
|
|
|
int a = 100;
|
|
|
|
public void setup()
|
|
{
|
|
size(200, 200);
|
|
stroke(255);
|
|
framerate(30);
|
|
}
|
|
|
|
public void draw()
|
|
{
|
|
background(51);
|
|
a = a - 1;
|
|
if (a < 0) {
|
|
a = height;
|
|
}
|
|
line(0, a, width, a);
|
|
}
|
|
}
|