Nebulas are beautiful space objects — gas and dust clouds with distinctive colours, acting as star nurseries. Watching a PyCon 2018 conference by Emily Xie gave me a great basis to build upon and use processing.py and then p5.js to build an interactive interface that draws a human-machine generated output that resembles nebulas. It was important to me that the interface allows user input to alter the generated output and make their own version, and also that it can be outputted in a browser, therefore I translated the python code to p5.js and ran it in the processing app to check for bugs, typos, etc.
It is basically a live update on screen of endlessly repeated circles (or sections thereof) that are drawn and overlaid. The mouse cursor operates as a centre and guide to the automatically generated circle arc; the amplitude slider determines the max deployment angle for the circle arc (min 10 degrees and max 360 for the full circle). Press any key and the output is saved as a tif file. The shape randomness is achieved thanks to the Perlin noise function. At each iteration, the drawn arc either diminishes or grows depending whether its radius has a positive or negative value.
To provide you with the best browsing experience, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behaviour or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Necessary
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Optional - Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Optional - Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.