@villares@ciberlandia.pt

ciberlandia.pt

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

Recent twts from @villares@ciberlandia.pt

those who don’t know history are doomed to create new ugly translations of terms for which we had good translations before :(

quem não conhece a história esta fadado a criar novas traduções feias de termos para os quais tínhamos boas traduções antes :(

⤋ Read More

I hope there is no “Pauli Exclusion Principle” on #py5 postings in Mastodon, because I only see two people posting about it at a time, right now it’s @ericof@ericof and me, before that @TomLarrow@TomLarrow and @kantel@kantel …

⤋ Read More

sketch_2022_05_30 #Processing #Python #py5 #numpy, same bitwise pattern strategy as yesterday’s, learned from Naoki Tsutae.

#img = py5.create_image_from_numpy(color_map[pattern], 'RGB') img = py5.create_image_from_numpy(pattern * 255, 'L', dst=img) py5.image(img, 0, 0, py5.width, py5.height) py5.window_title(f'{py5.get_frame_rate():.2f}') @np.vectorize def func(x, y, t): return int((t + ((x ^ y) ** (power / 10))) % 256) > 32 def key_pressed(): global power if py5.key_code == py5.UP: power += 1 elif py5.key_code == py5.DOWN: power = max(power - 1, 1) elif py5.key == 's': py5.save_frame(f'out{order}-{power}.png') print(power) py5.run_sketch(block=False) " target="_blank"> Image

⤋ Read More

#CreativeCoding #Processing #Python # This pattern strategy I learned from Naoki Tsutae

https://openprocessing.org/user/154720?view=sketches&o=48#sk

import numpy as np #numpy
import py5 #py5

order = 500
power = 59

def setup():

global color_map, x, y
py5.size(1000, 1000)
py5.no_smooth()

color_map = np.array([
        [py5.red(hsb(i)), py5.green(hsb(i)), py5.blue(hsb(i))]
    for i in range(256)])
x, y = np.meshgrid(np.arange(0, order), np.arange(0, order))

def draw():

py5.background(0)
pattern = func(x, y)
img = py5.create_image_from_numpy(color_map[pattern], 'RGB')
py5.image(img, 0, 0, py5.width, py5.height)

def hsb(h, sat=255, bri=255):

py5.color_mode(py5.HSB)
return py5.color(h, sat, bri)

@np.vectorize
def func(x, y):

return int((x ^ y) ** (power / 10)) % 256

def key_pressed():

global power
if py5.key_code == py5.UP:
    power += 1
elif py5.key_code == py5.DOWN:
    power = max(power - 1, 1)
elif py5.key == 's':
    py5.save_frame(f'out{order}-{power}.png')
print(power)

py5.run_sketch(block=False)

Image

⤋ Read More

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