Code Compliance
This page serves as a comprehensive guide for artists and developers to ensure their code meets the unique requirements of the Genify platform
Understanding and adhering to these standards is crucial for maintaining the integrity and consistency of your generative art. Here, you'll find detailed instructions on how to:
Utilize Genify's Random Functions: Learn how to use Genify's specific random functions for generating numbers, booleans, and choosing elements from a list. This ensures that your artwork remains consistent across different renders with the same hash.
Signal that rendering is done
Set features for generation
Add Extra CSS Styles: Instructions on how to incorporate additional CSS styles into your artwork, enhancing its visual appeal without affecting its performance.
Adapt p5.js Code: A step-by-step guide on how to modify your p5.js code so that it integrates seamlessly with the Genify platform, ensuring compatibility and performance. p5.js@1.0 or p5.js@1.6
Use Genify Random Functions in p5.js: Techniques for incorporating Genify's random functions within your p5.js code, enabling you to maintain consistency in randomness and generate unique yet replicable artwork patterns.
Important Tip:
If you encounter a conflict with the variable R
in your code, you can resolve this by redefining it at the very beginning of your script. For example, you can create a new instance of the random number generator by declaring
. This allows you to use Rr
instead of R
to access Genify's random functions, thus avoiding any potential naming conflicts. This approach ensures that your code runs smoothly on the Genify platform, while maintaining consistency and readability.
Last updated