48,962 views
23 votes
23 votes
Javascript question:
what are the parameters of fill when colormode is set to hsb?

User Perry Horwich
by
3.0k points

1 Answer

27 votes
27 votes

Answer:

By default, the parameters for fill(), stroke(), background(), and color() are defined by values between 0 and 255 using the RGB color model. This is equivalent to setting colorMode(RGB, 255). Setting colorMode(HSB) lets you use the HSB system instead. By default, this is colorMode(HSB, 360, 100, 100, 1).

Step-by-step explanation:

User Doug Null
by
3.1k points