Last active
July 5, 2016 14:16
-
-
Save Phryxe/3e0c6862f975f7d028401e4ec49d662f to your computer and use it in GitHub Desktop.
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 [ | |
Title: "Style Test" | |
Needs: View | |
] | |
view [ | |
title "Style Test" | |
size 400x400 | |
style ball: base 30x30 transparent extra 1x-1 draw [fill-pen blue circle 15x15 14] rate 100 on-time [ | |
face/offset: face/offset + (face/extra * random 9x9) | |
if face/offset/x + face/size/x > face/parent/size/x [face/extra/x: -1] | |
if face/offset/y + face/size/y > face/parent/size/y [face/extra/y: -1] | |
if face/offset/x < 0 [face/extra/x: 1] | |
if face/offset/y < 0 [face/extra/y: 1] | |
] | |
ball ball ball ball ball ball ball ball ball ball | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment