mirror of
https://github.com/dyne/FreeJ.git
synced 2026-02-05 12:39:15 +01:00
processing-js 0.4 has been merged in some relevant parts basic and topic scripts added for test color handling fixed, more scripts show up now
24 lines
503 B
Plaintext
24 lines
503 B
Plaintext
size(200, 200);
|
|
background(102);
|
|
|
|
// Load the font. Fonts are located within the
|
|
// main Processing directory/folder and they
|
|
// must be placed within the data directory
|
|
// of your sketch for them to load
|
|
PFont fontA = loadFont("Arial");
|
|
|
|
// Set the font and its size (in units of pixels)
|
|
textFont(fontA, 32);
|
|
|
|
int x = 30;
|
|
|
|
// Use fill() to change the value or color of the text
|
|
fill(0);
|
|
text("ichi", x, 60);
|
|
fill(51);
|
|
text("ni", x, 95);
|
|
fill(204);
|
|
text("san", x, 130);
|
|
fill(255);
|
|
text("shi", x, 165);
|