Python (with Turtle)

No description

fork
loading
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
from math import *
import random

import turtle

seed = random.randint(0,65536)

tina = turtle.Turtle()

for i in range(800):
  for j in range(800):
    tina.goto(400-i,400-j)
    outp = gnoise(i/100,j/100,0,1,seed)
    tina.pendown()
    tina.forward(1)
    tina.penup()

def gnoise(x,y,mini,maxi,seed='5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9'):
    inp = []
    for i in range(4):
        inp.append([])
        for j in range(4):
            inp[i].append(generateNumber(i+int(x-1),j+int(y-1),seed,0,1))
    outp = 0
    for i in range(4):
        for j in range(4):
            outp += inp[i][j] * (1/4**((((i-x)**2)+((j-y)**2))**0.5))
    outp = outp / 2.8881876076179
    return outp * (maxi-mini) + mini

def generateNumber(x,y,seed,mini,maxi):
    inp = str(seed)
    inp += ','+str(x)+','+str(y)
    outp = seed * (x ** y + y ** x)
    outp = 1/(1+2.718**(0-outp))
    return outp*(maxi-mini)+mini

result
console