# MinaCoding2025_RainySeason

# RainyTileViews

For ***MinaCoding2025* Prompt 17:** **Rainy Season** ,**RainyTileViews** coded in **HydraVideoSynth & Python creates** a viewscape of a rainy season through the lens of tiles.

## Poem

```apache
Rain Comes
Rain Goes
Rain Succumbs  
Rain Flows
Rain Arrives
Rain Hides
Rain Flows
Alongside the Earth Souls
```

## Image

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1750138378667/49f3ae7c-f8a1-4a9f-acf8-daa4b9b3d8d6.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1750138424210/73d112dd-0f7a-4cff-ac69-a6dba49fca89.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1750138396013/c9f5b42c-dd3b-4c6c-a289-65189c23c98c.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1750138400442/87adb087-80a8-4481-9424-7f5f3dd6d2b1.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1750138419706/2f5c85ac-acf9-4940-a6cc-bd89157a49ce.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1750138413533/6994af37-5f62-44de-823e-24c449428cef.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1750138416730/0b90e23d-f95c-42bf-b294-3a3c71d4efd8.png align="center")

## Code

### HydraVideoSynth

```javascript
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()).out()

speed = 0.15
```

### Python

```python
import numpy as np
import seaborn as sns
import matplotlib.pylab as plt

def battle():
    #using the 0 & 1 to represent a ship versus the ocean and having a weighted value of 0.8 for ocean, 0.18 for boats and 0.02 for mines
    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,color):
    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=color) #changing it to blue for ocean representation
    ax.set_xticklabels(letters) #setting the ticks of the x axis to letters
    plt.show()
    return x

plotting(battle(),"Blues")
```
