# SciArtSeptember2023_Indigo

# **IndigoWaveLengths**

For the 7th prompt of SciArtSeptember2023: "***Indigo" " t***hrough LiveCodeLab, Hydra and some effects, We are seeing the different shades of Indigo interact with each other.

## Poem

```ocaml
Bursting of Indigos
Intermingling with various shades and hues
Belonging to the family of Indigo
Blues like the sky
At various times
Purples added to the lines
With a hint of violets
Added to the various colorsets
Bursting of Blues & Purples
Blitzing with their Hues
As their Waves form this Channel
```

## Images

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1694126612536/32d51e03-f6e4-4972-b551-6ed66eb37c66.jpeg align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1694126621181/22af6e92-c65d-4214-a972-544cb640baac.jpeg align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1694126629047/77d2074e-5e62-4ead-bb26-602ba00450b7.jpeg align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1694126643721/6baa923d-a9ae-4780-8d97-bea56bbd10dd.jpeg align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1694126668664/00c5b9d7-022a-4f46-a964-c3138fd1e909.jpeg align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1694126648092/e6c36105-eed6-42c9-8259-da19bb4b2502.jpeg align="center")

## Code

### LiveCodelab

```javascript
//different indigo shades

electricIndigo = color(111, 0, 255)
blu_violet = color(138, 43, 226)
Tropical_Indigo = color(150, 131, 236)

Indigo_Dye = color(0, 65, 106)
Imperial_Blue = color(0, 35, 149)

WebcolorIndigo = color(75, 0, 130)

if time % 45 > 30
	simpleGradient electricIndigo,blu_violet,Tropical_Indigo
	fill Indigo_Dye
	stroke Imperial_Blue
	scale Math.cbrt((sin(time) + (time % 13.0)/2.0 + 0.1)/4.0)
	rotate Math.sqrt((time),cos(time),sin(time % 6.0 + 1.0)),wave(0.03)
else if time % 45 < 15
	simpleGradient Indigo_Dye,Imperial_Blue,electricIndigo
	fill WebcolorIndigo
	stroke Tropical_Indigo
	scale (sin(time) + (time % 13.0)/2.0 + 0.1)/4.0
	rotate sin(time),cos(time),sin(time % 6.0 + 1.0)

else
	simpleGradient Imperial_Blue,Tropical_Indigo,WebcolorIndigo 
	fill electricIndigo
	stroke blu_violet
	rotate cos(Math.hypot((time % 7 + 1)/5,(time % 9 * 10))), Math.sqrt(sin(time + 4)), tan(Math.cbrt(time % 15))
	move 1,Math.sqrt(time %7+2),1


peg 1 + sin(wave(0.3)),2 * Math.cbrt(wave(0.05)), sin(wave(0.43))
box 1.0 + sin(wave(0.3)),2.0 * wave(0.05), sin(wave(0.43))
ball 1.0 + sin(wave(0.3)),Math.sqrt(2.0 * wave(0.05),2), sin(wave(0.43))
```

### Hydra

```javascript
s0.initScreen()

src(s0).scale([1.13,1.25,1.60].smooth()).repeat(()=>Math.cbrt(time % 7 + 3)).kaleid(()=> time % 5 + 1).diff(src(s0).scale(1.25)).blend(src(s0).scale(1.15)).add(src(s0).scale(1.35)).out(o0)


speed = 0.135
```
