138k views
2 votes
Javascript question:
what are the parameters of fill when colormode is set to hsb?

User Fiza Khan
by
4.1k points

1 Answer

4 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 Granit
by
4.7k points