Mercurial > hg > forks > multipaint-js
changeset 83:6524e83c3ba7
Cleanup.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 05 Jul 2018 23:19:14 +0300 |
parents | d982486e0a85 |
children | 025efefd1704 |
files | multipaint.pde |
diffstat | 1 files changed, 5 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/multipaint.pde Thu Jul 05 23:04:27 2018 +0300 +++ b/multipaint.pde Thu Jul 05 23:19:14 2018 +0300 @@ -87,15 +87,8 @@ int g_bsize, g_btype; -void setup() { - int i, x, y; - - g_dirty = true; - frameRate(40); - - for (i = 0; i < g_data.length; i++) - g_data[i] = 0; - +void setup() +{ g_magpix[0] = 3; g_magpix[1] = 8; g_magpix[2] = 16; @@ -198,8 +191,8 @@ output = createImage(X * g_omag + g_bordh * g_omag, Y * g_omag + g_bordv * g_omag, RGB); outputsans = createImage(X * g_omag, Y * g_omag, RGB); - for (y = 0; y < Y; y++) - for (x = 0; x < X; x++) + for (int y = 0; y < Y; y++) + for (int x = 0; x < X; x++) absolute_clearpoint(x, y); switcher(2); @@ -207,6 +200,7 @@ background(g_r[259], g_g[259], g_b[259]); sussborder(); setup_raster(); + message("Multipaint|Metal|v22.5.2017"); message("*"); }