kopia lustrzana https://github.com/villares/sketch-a-day
Update sketch_2020_07_06a.pyde
rodzic
495b7c3c19
commit
8c9e393204
|
|
@ -1,20 +1,25 @@
|
|||
n,s=64,8#;l=long(2**n) #つぶやきProcessing
|
||||
def setup():noStroke();frameRate(2);size(n*s,n*s);colorMode(3)
|
||||
n,m,s=64,255,8 #つぶやきProcessing
|
||||
def setup():size(n*s,n*s);frameRate(1);colorMode(3)
|
||||
def draw():
|
||||
clear();f=frameCount
|
||||
clear();f=frameCount;noStroke()
|
||||
for x in range(n):
|
||||
c=long(abs(-2*f%s+x^s*f%s-x)**7)
|
||||
#c=long(abs(-2*f**3%128+x^128*f**2%64-x)**3.5)
|
||||
#c=long(abs(-2*f%128+x^4*f%n-x)**7.9)
|
||||
c=long(abs(-s*f%n+x^4*f%n-x)**7.9)
|
||||
for y in range(n):
|
||||
b='0'*64+bin(c);fill((c+y)%256,255,255)
|
||||
if b[::-1][n-y]=='1':rect(x*s,y*s,s,s)
|
||||
b='0'*n+bin(c);fill((c+y)%m,m,m)
|
||||
if b[::-1][n-y]=='1':square(x*s,y*s,s*2)
|
||||
# print(f, c)
|
||||
|
||||
print(f, c)
|
||||
|
||||
|
||||
|
||||
# n,s=64,5;l=2**n
|
||||
# def setup():
|
||||
|
||||
|
||||
# n,s=64,8#;l=long(2**n) #つぶやきProcessing
|
||||
# def setup():frameRate(2);size(n*s,n*s);colorMode(3)
|
||||
# def draw():
|
||||
# clear();f=frameCount
|
||||
# for x in range(n):
|
||||
# # c=long(abs(-2*f%s+x^s*f%s-x)**7)
|
||||
# #c=long(abs(-2*f**3%128+x^128*f**2%64-x)**3.5)
|
||||
# c=long(abs(-2*f%n+x^4*f%n-x)**7.9)
|
||||
# for y in range(n):
|
||||
# b='0'*64+bin(c);fill((c+y)%192,255,255)
|
||||
# if b[::-1][n-y]=='1':square(x*s,y*s,s*2)
|
||||
# print(f, c)
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue