Created
May 13, 2016 12:08
-
-
Save iArnold/a65fac0926feb9c27d72949828f77d4a to your computer and use it in GitHub Desktop.
Random noise image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Red [ | |
Author: ["Martin Ceronio" "Nenad Rakocevic" "Arnold van Hofwegen"] | |
Needs: 'View | |
] | |
system/view/auto-sync?: no | |
break-loop: false | |
i: make image! 50x50 | |
view/no-wait [img: image i button "Stop!" [break-loop: true unview]] | |
forever [ | |
if break-loop [break] | |
while [not tail? i] [ | |
i/1: as-rgba random 255 random 255 random 255 0 | |
i: next i | |
] | |
i: head i | |
show img | |
do-events/no-wait | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment