ScratchData LogoScratchData
Back to TheLogFather's profile

[UPDATED] 1 line challenge: Moon Phase

THTheLogFather•Created July 7, 2016
[UPDATED] 1 line challenge: Moon Phase
132
98
1751 views
View on Scratch

Description

UPDATE: sharpness of terminator (dividing line between dark side and light side) now depends upon phase (sharper when near edge) Another one-line challenge project for @Scratch-Minion's studio. This draws (slowly!) the *current* phase of the moon – should be roughly accurate for dates within a few years of now. Stars drawn same way as 1-line project this is based on (below). Note that it uses a long string of 40000 digits to store a greyscale image of the moon (thanks to @heldlaw for that idea!), which means the expression in the "set pen color" block gets too long for Scratch to render it correctly, and it can freeze when you first scroll down. However, I placed that long string at the end of the expression, so you can still see everything else in it. Again, there's a more normal readable script in the "HELP!" sprite, which draws the same thing, so you can try to follow how it works. Press T to test that it draws the same thing (much quicker!)

Project Details

Project ID115748437
CreatedJuly 7, 2016
Last ModifiedJuly 8, 2016
SharedJuly 7, 2016
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root