Skip to content

Instantly share code, notes, and snippets.

@rachsmithcodes
Created December 4, 2015 06:10
Show Gist options
  • Save rachsmithcodes/52a8f4f003a9a780d866 to your computer and use it in GitHub Desktop.
Save rachsmithcodes/52a8f4f003a9a780d866 to your computer and use it in GitHub Desktop.
25 Days of Christmas no. 3
function onGLC(glc) {
glc.loop();
glc.size(400, 400);
glc.setDuration(2.5);
// glc.setFPS(20);
glc.setMode("single");
glc.setEasing(false);
// glc.setMaxColors(256);
var list = glc.renderList,
width = glc.w,
height = glc.h,
color = glc.color;
glc.styles.backgroundColor = '#96b6db';
// your code goes here:
for (var x = 0; x < 13; x++) {
for (var y = 0; y < 13; y++) {
list.addArcSegment({
x: 33*x,
y: 33*y,
radius: 20,
starAngle: 100,
endAngle: 360,
arc: 140,
phase: x*y/90,
strokeStyle: '#912172'
})
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment