WCCC_CityMap

WCCC_CityMap

Maps but Glitchy

CityMappingGlitch

For this week's Creative Code challenge by @sableRaph:"City Map” , CityMappingGltch is coded in Python MermaidJs, Hydravideosynth & ByteBeat

The visuals are representing a city map that is being built with glitches embedded in their system and the audio showcases the effort that is put in to fix such issues

Poem

Building a city
Mapping the roadways
Glitching the pathways , each day
To the edges that make the bay
This structure may be a bit dizzy
May need a whole new committee
But maybe
This what you need
When building a city

Video

Code

MermaidJs (Layered)

gitGraph:
    commit id: "BeHaven"
    commit id: "New Ideas"
    commit id: "Old Ideas"
    commit id:"black"
    commit id: "Travelling"
    commit id: "Damage Control"
    branch OldYork
    commit id: " Y"
    commit id:"1111"
    commit id:"black"
    commit id: "B"
    commit id: "C"
    commit id: "Time After Time"
    branch NewCrimas
    commit id: "A"
    commit id: "longterm3"
    commit id: "D"
    commit id: "Old Ideas"
    commit id: "B"
    checkout OldYork
    branch OldCrimas
    commit id:"1111"
    commit id:"red"
    commit id:"black"
    commit id: "orange"
    commit id: "longterm"
    branch Trianny
    commit id: "Old Ideas"
    commit id: "NewBlash"
    commit id: "Hijance"
    commit id: "BeHaven"
    merge OldCrimas
    merge NewCrimas
    branch AllYork
    merge OldCrimas
    merge NewCrimas
    commit id:"black"
    commit id: "C"
    branch MindMaze
    commit id: "C"
    commit id: "Faraway"
    commit id: "longterm"
    commit id: "longterm2"
    commit id: "longterm3"

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="Set3") #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())

Hydra

s0.initScreen()

src(s0).modulateHue(s0).modulateRotate(src(s0).scale(1.73)).out()
s0.initScreen()

src(s0).scale(0.5).add(src(s0).scale(1.25)).blend(src(s0).scale(0.35)).out()

ByteBeat (Audio)

((cbrt(t) | t >> hypot(t,sin(t^2)) % 5) | t>> sin(t*t) | cos(sin(cbrt(t)))
)
((tan(t) | t >> hypot(t,t^2) % 5) | t>> sin(t*t) | cos(sin(t))
)