Skip to content

Instantly share code, notes, and snippets.

@micahrj
Created January 7, 2012 22:59
Show Gist options
  • Save micahrj/1576383 to your computer and use it in GitHub Desktop.
Save micahrj/1576383 to your computer and use it in GitHub Desktop.
ex = room_width / 2
why = room_height / 2
for (exx = 0; ex < room_width; exx += 1) {
for (whyy = 0; whyy < room_height; whyy += 1) {
draw_point_color(exx, whyy, make_color_hsv(0, 0, sqrt(((exx - ex) ^ 2) + ((whyy - why) ^ 2)) * (255 / (room_height/2))))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment