As every week goes by, I learn new ways to improve my sunrise/sunset sketch. This week, I was able to use an array to create and randomly display stars – my version of a particle system.

In this sketch you have the following happening:

  • The sun is moving along the x-axis on it’s own
  • When it gets to x = 450, it changes colour
  • While the sun is moving, the background colour is also changing. The sun is mapped to the background to create the “illusion” of the sun rising, then setting.
  • As x = 400, my stars are generated using an array.
  • The stars have attributes that allow them to glow and move in the moonlight.

My new Sketch!

42 thoughts on “Stars!”

  1. I wanted to post you that tiny remark to say thanks a lot over again just for the nice secrets you have featured in this case. It was really seriously open-handed with you to grant publicly just what many individuals might have offered for an ebook to generate some dough for themselves, mostly now that you might have tried it in case you desired. These secrets as well served to be a great way to recognize that the rest have the same passion the same as my very own to see way more with regards to this problem. I think there are thousands of more pleasurable times up front for those who start reading your website.

  2. I am also commenting to let you know of the helpful encounter my friend’s daughter found reading through your web page. She figured out such a lot of things, with the inclusion of what it is like to possess an ideal teaching spirit to make the mediocre ones without difficulty master specified tortuous topics. You undoubtedly surpassed readers’ expected results. Thanks for rendering those useful, trustworthy, revealing as well as unique tips on your topic to Sandra.

  3. My husband and i felt now excited Emmanuel could conclude his inquiry from your ideas he gained in your site. It’s not at all simplistic just to choose to be giving for free ideas that most people have been making money from. And we all do understand we have the website owner to be grateful to because of that. The explanations you’ve made, the easy site menu, the friendships you can give support to engender – it’s everything extraordinary, and it’s facilitating our son and our family feel that that idea is cool, and that is highly important. Many thanks for all the pieces!

Leave a Reply

Your email address will not be published.