SunnyTileViews
For MinaCoding2025 Prompt 18: Patterns ,SunnyTileViews coded in HydraVideoSynth, LiveCodeLab & Python creates a viewscape of color patterns associated with a transition to summer from a rainy season through the lens of tiles. With aid from the Oil paint filter
Poem
Rain Comes and goes
Along with the Sun
As the Rain Succumbs
The flow of the rain
May sustain
Even after the sun arrives
As the Rain may Hide
The sun ray flows
Alongside the Earth Souls
Video
Code
HydraVideoSynth
s0.initScreen()
src(s0).pixelate([50,75,100,25,10].smooth(),[5,15,25,50,15,5].smooth()).modulateScrollY(src(s0),0.25).modulateRotate(src(s0),[0.5,0.75,1].smooth()).invert().repeat([1,2,3,4,3,2,1].fast(0.04),[4,3,2,3,4].smooth()).out()
speed = 0.15
Python
import numpy as np
import seaborn as sns
import matplotlib.pylab as plt
def battle():
boats = [0,1,2,3,4,5,6,7,8,9,10,11]
prob = [0.025,0.025,0.05,0.05,0.05,0.05,0.1,0.1,0.1,0.1,0.2,0.15]
shipyard2 = np.random.choice(boats, (16,16), p=prob)
return shipyard2
def plotting(x,color):
letters = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P']
uniform_data = x
ax = sns.heatmap(uniform_data, linewidth=0.5,cmap=color)
ax.set_xticklabels(letters)
plt.show()
return x
plotting(battle(),"Blues")
LiveCodeLab
bpm 88
play "pianoLHChord" + int(random 8) ,'x--x----x'
play "pianoRHChord" + int(random 3) ,'xx----x-xx'
play "detune" + int(random wave(4)) ,'--x- -xx- --x- -x-x'
play "dish" + int(random time % 12) ,'x'
play "downstairs" ,'--x- -x-- xx-x- --x-'
play "glass" ,'--x- -xx-- --x- -x-x'