# MinaCoding2025_LetterScene

# LettersInGlitch

*For* ***MinaCoding2025*** *Prompt 13 & 23:* ***Letters & Scene, LettersInGlitch*** *i*s coded through a **Ruby** formatted text file and glitchified in **HydraVideoSynth**

## Poem

```javascript
Pixels combining
With Letters To create
A New Scene
With an Intent
To Facilitate new terrains to Elevate
Through the form of Pixelate
They are always Reminding
About the new Glitch to collect
```

## Images

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751312933152/0fedf1c6-d9fe-4cb4-9c70-e448ed7c3a04.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751312936856/7bab3db5-e951-4c4c-8b2d-ba223908e93d.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751312940125/68581019-ae14-4e84-b740-9642404e7bed.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751312947561/a928dd42-fbaa-41e9-844c-dc62a16763a4.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751312945579/65f84852-eb2c-492d-bf57-dc6cd682b374.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751312934757/80049aa9-6fa0-4eff-aebe-8c4b1fb4f85c.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751312943767/c6281e48-7eff-40c1-9f36-fe4df9ca269a.png align="center")

## Code

### Ruby

```ruby


#Output to a file
#.center(40) aligns the code to follow Form

#words = 'a'

def poetry (amt,words,indent)
  
  x_cor = indent + 20
  x_cor2 = x_cor * 2
  x_cor3 = x_cor2 + x_cor
  
  use_random_seed Time.now.to_i / 2
  x = ('a'..'z').to_a.shuffle.reverse
  y = ('a'..'z').to_a.shuffle.reverse
  
  #wave components
  wave1 = [x[12],y[17],y[12]]
  wave2 = [y[5],y[10],y[12]]
  
  wave2a = wave2.shuffle
  wave2b = wave2.shuffle.reverse
  
  #second wave components
  
  wave3 = (y.last(13) + x.first(12)).shuffle
  wave3a = [wave3[10],wave3[12],wave3[8],wave3[17]]
  
  File.open("#{words}.txt" , "w+") do |f|
    f.puts("#{y[17].center(indent)}")
    f.puts("#{wave1}".center(x_cor))
    f.puts("#{y.last(amt)}".center(x_cor2))
    f.puts("#{x.last(amt+2)}".center(x_cor3))
    f.puts("#{y.first(amt+3)}".center(x_cor3 + x_cor2))
    f.puts("#{x.first(amt)}".center(x_cor3 - 12))
    f.puts("#{wave3a}".center(x_cor2))
    f.puts("#{wave2}".center(x_cor))
    f.puts("#{wave2a}".center(indent + 5))
    #.puts(wave2b[0].center(10))
    f.puts("#{wave3.last(amt-2)}".center(x_cor2 + 10))
    f.puts("#{wave3.first(amt-2)}".center(x_cor3 - 5))
    f.puts("#{y[17].center(indent)}")
  end
end


poetry(4,'first',12)
poetry(5,'second',1)
poetry(3,'third',4.5)
```

### HydraVideoSynth

```javascript
s0.initScreen()
s1.initScreen()
s2.initScreen()

src(s0).scale(1.56).invert().pixelate(100,100).diff(src(s0).pixelate(75,75).scale(1.85)).
modulateRotate(src(s2).scale(2).invert()).out()
```
