@villares@ciberlandia.pt

ciberlandia.pt

Publicações públicas de @villares@ciberlandia.pt

Recent twts from @villares@ciberlandia.pt

I really like @bitartbot@bitartbot an I always wanted to try some of the patterns with #py5 (#Processing + #Python), also #numpy vectorization seemed cool to try…

#print(pattern) img = py5.create_image_from_numpy(pattern * 255, 'L') py5.image(img, 0, 0, py5.width, py5.height) py5.save('out.png') @np.vectorize def func(x, y): try: return (~(int((x & y) / (x ^ 8)) | ((y * 10) % (~x)))) % 3 > 0 except ZeroDivisionError: return 0 py5.run_sketch(block=False) " target="_blank"> Image

⤋ Read More

Uma pena que com a pandemia eu não aguentei continuar o meu boletim por email, teve alguns bons até :(
Esse aqui era cheio de referências comparando aprender a programar com aprender uma língua estrangeira.

A pity that with the pandemic I couldn’t keep up with my newsletter, it had some good instalments I suppose :(
This one was full of references comparing learning to code with learning a foreign language.

https://abav.lugaralgum.com/sketch-mail/2019-20

⤋ Read More

Meu lembrete periódico de que a melhor tradução em português do termo #generative é gerativo/gerativa, como atesta esta obra de 1976 sobre gramática gerativa (conceito introduzido pelo Chomsky na década de 50) https://buscaintegrada.ufrj.br/Record/aleph-UFR01-000348587

Estética Gerativa (como traduziu Haroldo de Campos e depois Júlio Plaza e Mônica Tavares o manifesto Generative Aesthetics de Max Bense)
Arte gerativa > Design gerativo > inteligência Artificial gerativa

Generate -> gerar
Generative -> gerativo/gerativa

⤋ Read More

#Processing #Python #numpy #shapely #py5 #sketchAday for 24th and 25th May

#def draw(): background(200) fill(255, 100) draw_shapely(mp) fill(0, 200, 0, 200) draw_shapely(union) save('out.png') def draw_shapely(shp): if isinstance(shp, (MultiPolygon, MultiLineString)): for p in shp.geoms: draw_shapely(p) elif isinstance(shp, Polygon): begin_shape() for x,y in shp.exterior.coords: vertex(x,y) for hole in shp.interiors: begin_contour() for x,y in hole.coords: vertex(x,y) end_contour() end_shape(CLOSE) elif isinstance(shp, LineString): with push_style(): no_fill() begin_shape() for x,y in shp.coords: vertex(x,y) end_shape()" target="_blank"> Image

Image

⤋ Read More