Table of contents
HuesInGlitch
For the 28th day of MinaCoding2024 : "HitaHita" , HuesInGlitch is coded in Python, LiveCodingYoutube & Hydra.
To follow the HitaHita prompt, the colours used can be considered a "soft" hue selection. as HitaHita can mean softly.
Poem
HitaHita with the Hue
HitaHita with the groove
As the grids take up the space in this room
May they glow as they flow through
Video
Code
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]
#by adding the (10,10) instead of 5, able to make an array with the weighted values
shipyard2 = np.random.choice(boats, (16,16), p=prob)
return shipyard2
def plotting(x):
letters = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P'] #set for the columns
uniform_data = x
ax = sns.heatmap(uniform_data, linewidth=0.5,cmap="plasma") #plasma #cool #Set3
ax.set_xticklabels(letters) #setting the ticks of the x axis to letters
plt.show()
return x
plotting(battle())
LiveCodingYoutube
Hues = "bVD9A2EWHjw"
create(2,2,Hues)
play(all)
speed([0,1],-0.1)
speed([2,3],0.1)
Hydra
s0.initScreen()
src(s0).modulatePixelate(s0).modulateRotate(s0).modulateHue(s0).modulateScale(s0).out()