Skip to content

Commit 3611c6a

Browse files
committed
Formatting change to read me
1 parent 3de0ebb commit 3611c6a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,23 @@ When the `hasRainbow` property is set to true, the track displays a rainbow grad
4848
Since one of the primary uses of the gradient sliders is to create color pickers, a few convenience methods have been provided for updating the colors.
4949

5050
**HSB**
51+
5152
`setGradientForHueWithSaturation(saturation:CGFloat,brightness:CGFloat)` This method sets the track to a rainbow gradient with the given saturation and brightness. This is useful for choosing a hue in the context of the current saturation and brightness settings.
5253

5354
`setGradientForSaturationWithHue(hue:CGFloat,brightness:CGFloat)` This method sets the track to a gradient varying from grey to fully saturated with the hue and brightness provided. This is useful for choosing a saturation value in the context of the current hue and brightness settings.
5455

5556
`setGradientForBrightnessWithHue(hue:CGFloat,saturation:CGFloat)` This method sets the track to a gradient varying from black to full brightness with the hue and saturation provided. This is useful for choosing a brightness value in the context of the current hue and saturation settings.
5657

5758
**RGB**
59+
5860
`setGradientForRedWithGreen(green:CGFloat, blue:CGFloat)` This method sets the track to a gradient with varying red for the given green & blue values.
5961

6062
`setGradientForGreenWithRed(red:CGFloat, blue:CGFloat)` This method sets the track to a gradient with varying green for the given red & blue values.
6163

6264
`setGradientForBlueWithRed(red:CGFloat, green:CGFloat)` This method sets the track to a gradient with varying blue for the given red & green values.
6365

6466
**Grayscale**
67+
6568
`setGradientForGrayscale()` This method sets the track to a gradient from black to white.
6669

6770
## Responding to User Interaction

0 commit comments

Comments
 (0)