Readme files: add missing "kotlin" to code fences (#336)

This commit is contained in:
Abe Pazos
2024-05-27 12:37:21 +00:00
committed by GitHub
parent 45d67a7ef9
commit d8682f34f9
12 changed files with 37 additions and 23 deletions

View File

@@ -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