Readme files: add missing "kotlin" to code fences (#336)
This commit is contained in:
@@ -10,7 +10,7 @@ orx-color adds an extensive list of preset colors to `ColorRGBa`. Check [sources
|
||||
|
||||
orx-color comes with tools to calculate color histograms for images.
|
||||
|
||||
```
|
||||
```kotlin
|
||||
val histogram = calculateHistogramRGB(image)
|
||||
val colors = histogram.sortedColors()
|
||||
```
|
||||
@@ -20,7 +20,7 @@ val colors = histogram.sortedColors()
|
||||
Easy ways of creating blends between colors.
|
||||
|
||||
Using the `rangeTo` operator:
|
||||
```
|
||||
```kotlin
|
||||
for (c in ColorRGBa.PINK..ColorRGBa.BLUE.toHSVa() blend 10) {
|
||||
drawer.fill = c
|
||||
drawer.rectangle(0.0, 0.0, 40.0, 40.0)
|
||||
@@ -29,7 +29,7 @@ for (c in ColorRGBa.PINK..ColorRGBa.BLUE.toHSVa() blend 10) {
|
||||
```
|
||||
|
||||
Or blends for multiple color stops using `colorSequence`. Blending takes place in the colorspace of the input arguments.
|
||||
```
|
||||
```kotlin
|
||||
val cs = colorSequence(0.0 to ColorRGBa.PINK,
|
||||
0.5 to ColorRGBa.BLUE,
|
||||
1.0 to ColorRGBa.PINK.toHSLUVa()) // <-- note this one is in hsluv
|
||||
|
||||
Reference in New Issue
Block a user