Alexandre B A Villares 🐍 · @villares
865 followers · 1466 posts · Server ciberlandia.pt

sketch_2022_02_01 imported mode

import trimesh
import shapely

# iamkate.com/data/12-bit-rainbo
palette = (
'#817', '', '', '',
'', '', '', '',
'', '', '', '#639'
)

def setup():
global m
size(400, 400, P3D)
no_stroke()
polygon = shapely.geometry.Polygon([(-100, -100), (0, -100),
(0, 0), (-50, -50), (-100, 0)])
m = trimesh.creation.extrude_polygon(polygon, 30)

def draw():
background(0)
translate(width /2, height / 2)
rotate_x(QUARTER_PI)
rotate_y(radians(mouse_x))
for i, face in enumerate(m.faces):
fill(palette[i % 12])
with begin_closed_shape():
vertices([m.vertices[v] for v in face])

#processing #python #py5 #shapely #trimesh #p3d #a35 #c66 #e94 #ed0 #9d5 #4d8 #2cb #0bc #09c #36b

Last updated 2 years ago

Alexandre B A Villares 🐍 · @villares
865 followers · 1446 posts · Server ciberlandia.pt

# iamkate.com/data/12-bit-rainbo
palette = (
'#817', '', '', '',
'', '', '', '',
'', '', '', '#639'
)

def setup():
size(800, 800)
no_stroke()
background(0)

def draw():
xc = yc = 400
for i in range(6):
m = 1 - abs(cos(radians(frame_count / 2))) ** 5
r = 150 + 150 * m
a = radians(frame_count / 2 + 60 * i)
x = xc + r * cos(a)
y = yc + r * sin(a)
fill(palette[i])
circle(x, y, 150)
r = 300 - 150 * m
a = a + radians(30)
x = xc + r * cos(a)
y = yc + r * sin(a)
fill(palette[-1 -i])
circle(x, y, 150)

#processing #python #py5 #genuary #genuary31 #トゥートprocessing #a35 #c66 #e94 #ed0 #9d5 #4d8 #2cb #0bc #09c #36b

Last updated 2 years ago

Alexandre B A Villares 🐍 · @villares
857 followers · 1390 posts · Server ciberlandia.pt

imported mode
# Kate Rose Morley's palette
# iamkate.com/data/12-bit-rainbo

from itertools import product

palette = (
'#817', '', '', '',
'', '', '', '',
'', '', '', '#639'
)

def setup():
global palavras
size(800, 800)
no_loop()
rect_mode(CENTER)
no_stroke()

def draw():
w = 400
i = 0
for x, y in product(range(0, width, w), repeat=2):
for z in range(3):
fill(palette[i])
square(w / 2 + x, w / 2 + y, w / (z / 2 + 1))
i += 1

#processing #python #py5 #genuary #genuary30 #トゥートprocessing #a35 #c66 #e94 #ed0 #9d5 #4d8 #2cb #0bc #09c #36b

Last updated 2 years ago

Nachdem die Dampffraktion überholt wurde und ihren Auslauf hatte, darf nun die der Zeit entsprechende Elektrofraktion ihre Runden drehen.

Die ist ein echtes Schmuckstück und das Eisenschweinchen soundso.

ZurückgelassenescWerkzeug zeugt von den notwendigen Eingriffen.
am hart Arbeiten. 😂

#e44 #e94 #modellbahnausbesserungswerk #SpurTT

Last updated 2 years ago