Open main menu

CDOT Wiki β

Changes

FSOSS 2010/processing.js/example4

92 bytes added, 07:53, 28 October 2010
no edit summary
[[category: FSOSS 2010 PJS Examples]]
<source lang="JavaScript">
/*
FSOSS 2010
Andor Salga
Example of strokeWeight() & stroke()
*/
// normalize 0..500 then multiply by scalar
// from 0..2010
strokeWeight( (mouseY /(float)height * 10 ));
}
</source>
[http://studio.sketchpad.cc/p7edjcRbb4 Run me]
1
edit