Abstract
Now that we can draw shapes in p5.js, let’s look at how to control the color in our sketches. We are already assigning a light gray color to the background by passing the values 220, 220, 220 to the background function.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2018 Engin Arslan
About this chapter
Cite this chapter
Arslan, E. (2018). Colors in p5.js. In: Learn JavaScript with p5.js. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3426-6_3
Download citation
DOI: https://doi.org/10.1007/978-1-4842-3426-6_3
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-3425-9
Online ISBN: 978-1-4842-3426-6
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books