Search
90 results for “py5coding”
-
-
#py5 @py5coding's goal is to have 10 monthly sponsors. Let's get the ball rolling with the first 10 sponsors! https://github.com/sponsors/py5coding
I'm a py5 contributor and I create free and open resources for teaching and learning coding in a visual context, I'd also like to reach 10 recurrent supporters: https://abav.lugaralgum.com/support-me
-
@villares @py5coding @ericof @TomLarrow thank you! I had a blast at #pyconus24 and will be going back next year!
-
@processing The py5 (@py5coding, https://py5coding.org/) #Python library is built on top of #Processing 4 so every #py5 tagged post here on Mastodon is also a #builtWithProcessing post :D
-
https://github.com/py5coding/py5generator/discussions/534
Have you played with a public stream of data for your art? Maybe a temperature or rain sensitive audio-visual art installation?
#py5 #dataArt #CreativeCoding #weatherData -
"""
sketch_2022_01_17 #genuary #genuary17 #Python #ProcessingCode for #py5 (py5coding.org) imported mode
Recursive grid - I'm always grateful for Takao Shunsuke's inspiration.
#トゥートProcessing #TootProcessing
"""def setup():
size(1024, 1024)
no_loop()
def draw():
background(0)
grid(0, 0, width, 4)
save_frame('###.png')def grid(grid_x, grid_y, grid_size, n):
cell_size = grid_size / n
for i in range(n):
x = grid_x + i * cell_size
for j in range(n):
y = grid_y + j * cell_size
if cell_size < 20:
fill(x % 255, 200, y % 255)
circle(x + cell_size / 2,
y + cell_size / 2,
cell_size)
elif n == 1:
fill(0, 0, 200)
square(x, y, cell_size)
else:
next_n = int(random(1, 5))
grid(x, y, cell_size, next_n)def key_pressed():
redraw() -
"""
sketch_2022_01_17 #genuary #genuary17 #Python #ProcessingCode for #py5 (py5coding.org) imported mode
Recursive grid - I'm always grateful for Takao Shunsuke's inspiration.
#トゥートProcessing #TootProcessing
"""def setup():
size(1024, 1024)
no_loop()
def draw():
background(0)
grid(0, 0, width, 4)
save_frame('###.png')def grid(grid_x, grid_y, grid_size, n):
cell_size = grid_size / n
for i in range(n):
x = grid_x + i * cell_size
for j in range(n):
y = grid_y + j * cell_size
if cell_size < 20:
fill(x % 255, 200, y % 255)
circle(x + cell_size / 2,
y + cell_size / 2,
cell_size)
elif n == 1:
fill(0, 0, 200)
square(x, y, cell_size)
else:
next_n = int(random(1, 5))
grid(x, y, cell_size, next_n)def key_pressed():
redraw() -
"""
sketch_2022_01_17 #genuary #genuary17 #Python #ProcessingCode for #py5 (py5coding.org) imported mode
Recursive grid - I'm always grateful for Takao Shunsuke's inspiration.
#トゥートProcessing #TootProcessing
"""def setup():
size(1024, 1024)
no_loop()
def draw():
background(0)
grid(0, 0, width, 4)
save_frame('###.png')def grid(grid_x, grid_y, grid_size, n):
cell_size = grid_size / n
for i in range(n):
x = grid_x + i * cell_size
for j in range(n):
y = grid_y + j * cell_size
if cell_size < 20:
fill(x % 255, 200, y % 255)
circle(x + cell_size / 2,
y + cell_size / 2,
cell_size)
elif n == 1:
fill(0, 0, 200)
square(x, y, cell_size)
else:
next_n = int(random(1, 5))
grid(x, y, cell_size, next_n)def key_pressed():
redraw() -
"""
sketch_2022_01_17 #genuary #genuary17 #Python #ProcessingCode for #py5 (py5coding.org) imported mode
Recursive grid - I'm always grateful for Takao Shunsuke's inspiration.
#トゥートProcessing #TootProcessing
"""def setup():
size(1024, 1024)
no_loop()
def draw():
background(0)
grid(0, 0, width, 4)
save_frame('###.png')def grid(grid_x, grid_y, grid_size, n):
cell_size = grid_size / n
for i in range(n):
x = grid_x + i * cell_size
for j in range(n):
y = grid_y + j * cell_size
if cell_size < 20:
fill(x % 255, 200, y % 255)
circle(x + cell_size / 2,
y + cell_size / 2,
cell_size)
elif n == 1:
fill(0, 0, 200)
square(x, y, cell_size)
else:
next_n = int(random(1, 5))
grid(x, y, cell_size, next_n)def key_pressed():
redraw() -
"""
sketch_2022_01_17 #genuary #genuary17 #Python #ProcessingCode for #py5 (py5coding.org) imported mode
Recursive grid - I'm always grateful for Takao Shunsuke's inspiration.
#トゥートProcessing #TootProcessing
"""def setup():
size(1024, 1024)
no_loop()
def draw():
background(0)
grid(0, 0, width, 4)
save_frame('###.png')def grid(grid_x, grid_y, grid_size, n):
cell_size = grid_size / n
for i in range(n):
x = grid_x + i * cell_size
for j in range(n):
y = grid_y + j * cell_size
if cell_size < 20:
fill(x % 255, 200, y % 255)
circle(x + cell_size / 2,
y + cell_size / 2,
cell_size)
elif n == 1:
fill(0, 0, 200)
square(x, y, cell_size)
else:
next_n = int(random(1, 5))
grid(x, y, cell_size, next_n)def key_pressed():
redraw() -
I love to play/create an #LSystem, check discussion at https://github.com/py5coding/py5generator/discussions/555 Code at: https://github.com/villares/sketch-a-day/tree/main/2024/sketch_2024_11_11
More sketch-a-day: https://abav.lugaralgum.com/sketch-a-day
I really need your support to keep going, if you can, donate any amount at: https://www.paypal.com/donate/?hosted_button_id=5B4MZ78C9J724 #Processing #Python #py5 #CreativeCoding -
# Um exemplo de como exportar um sketch no #py5 (#Processing + #Python) em alta resolução:
# Usando py5 (https://py5coding.org) com "imported mode", via plugin no Thonny IDE https://github.com/tabreturn/thonny-py5modedef setup():
size(512, 512)
# Prepare to record a high-res output
scale_factor = 4
out = create_graphics(width * scale_factor, height * scale_factor)
begin_record(out)
out.scale(scale_factor) # Needs to be after begin_record()
# Your drawing goes here!
background(0)
rect_mode(CENTER) # Don't forget to put mode changes
color_mode(HSB) # inside the recorded part!
no_stroke()
for i in range(16, 256, 16):
fill(i, 200, 200,)
rect(i * 2, i * 2, 32, 32)
fill((i + 128) % 256, 200, 200,)
ellipse(i * 2, i * 2, 16, 16)# End recording and save
end_record()
out.save('output.png')#トゥートProcessing #TootProcessing
# Errata da descrição da imagem: quadradao -> quadrado; outpur.png -> output.png -
# Um exemplo de como exportar um sketch no #py5 (#Processing + #Python) em alta resolução:
# Usando py5 (https://py5coding.org) com "imported mode", via plugin no Thonny IDE https://github.com/tabreturn/thonny-py5modedef setup():
size(512, 512)
# Prepare to record a high-res output
scale_factor = 4
out = create_graphics(width * scale_factor, height * scale_factor)
begin_record(out)
out.scale(scale_factor) # Needs to be after begin_record()
# Your drawing goes here!
background(0)
rect_mode(CENTER) # Don't forget to put mode changes
color_mode(HSB) # inside the recorded part!
no_stroke()
for i in range(16, 256, 16):
fill(i, 200, 200,)
rect(i * 2, i * 2, 32, 32)
fill((i + 128) % 256, 200, 200,)
ellipse(i * 2, i * 2, 16, 16)# End recording and save
end_record()
out.save('output.png')#トゥートProcessing #TootProcessing
# Errata da descrição da imagem: quadradao -> quadrado; outpur.png -> output.png -
# Um exemplo de como exportar um sketch no #py5 (#Processing + #Python) em alta resolução:
# Usando py5 (https://py5coding.org) com "imported mode", via plugin no Thonny IDE https://github.com/tabreturn/thonny-py5modedef setup():
size(512, 512)
# Prepare to record a high-res output
scale_factor = 4
out = create_graphics(width * scale_factor, height * scale_factor)
begin_record(out)
out.scale(scale_factor) # Needs to be after begin_record()
# Your drawing goes here!
background(0)
rect_mode(CENTER) # Don't forget to put mode changes
color_mode(HSB) # inside the recorded part!
no_stroke()
for i in range(16, 256, 16):
fill(i, 200, 200,)
rect(i * 2, i * 2, 32, 32)
fill((i + 128) % 256, 200, 200,)
ellipse(i * 2, i * 2, 16, 16)# End recording and save
end_record()
out.save('output.png')#トゥートProcessing #TootProcessing
# Errata da descrição da imagem: quadradao -> quadrado; outpur.png -> output.png -
# Um exemplo de como exportar um sketch no #py5 (#Processing + #Python) em alta resolução:
# Usando py5 (https://py5coding.org) com "imported mode", via plugin no Thonny IDE https://github.com/tabreturn/thonny-py5modedef setup():
size(512, 512)
# Prepare to record a high-res output
scale_factor = 4
out = create_graphics(width * scale_factor, height * scale_factor)
begin_record(out)
out.scale(scale_factor) # Needs to be after begin_record()
# Your drawing goes here!
background(0)
rect_mode(CENTER) # Don't forget to put mode changes
color_mode(HSB) # inside the recorded part!
no_stroke()
for i in range(16, 256, 16):
fill(i, 200, 200,)
rect(i * 2, i * 2, 32, 32)
fill((i + 128) % 256, 200, 200,)
ellipse(i * 2, i * 2, 16, 16)# End recording and save
end_record()
out.save('output.png')#トゥートProcessing #TootProcessing
# Errata da descrição da imagem: quadradao -> quadrado; outpur.png -> output.png -
# Um exemplo de como exportar um sketch no #py5 (#Processing + #Python) em alta resolução:
# Usando py5 (https://py5coding.org) com "imported mode", via plugin no Thonny IDE https://github.com/tabreturn/thonny-py5modedef setup():
size(512, 512)
# Prepare to record a high-res output
scale_factor = 4
out = create_graphics(width * scale_factor, height * scale_factor)
begin_record(out)
out.scale(scale_factor) # Needs to be after begin_record()
# Your drawing goes here!
background(0)
rect_mode(CENTER) # Don't forget to put mode changes
color_mode(HSB) # inside the recorded part!
no_stroke()
for i in range(16, 256, 16):
fill(i, 200, 200,)
rect(i * 2, i * 2, 32, 32)
fill((i + 128) % 256, 200, 200,)
ellipse(i * 2, i * 2, 16, 16)# End recording and save
end_record()
out.save('output.png')#トゥートProcessing #TootProcessing
# Errata da descrição da imagem: quadradao -> quadrado; outpur.png -> output.png -
@pythonbynight Mario, I won't be able to attend this year, if you have the chance, please invite people to try out #py5 https://py5coding.org
-
Great news! A new version of #py5 is out! :)))
https://github.com/py5coding/py5generator/releases/tag/py5-1313-0031-0.10.10a7
... and soon an update to the Thonny IDE plug-in will be out... :D
-
#ThonnyIDE 5.0.0 is out!
It comes with #Python 3.14 :)You can get it from https://thonny.org
I'm investigating the compatibility with the
thonny-py5modeplug-in and so far it seems to work fine. https://github.com/py5coding/thonny-py5mode/discussions/95 -
#ThonnyIDE 5.0.0 is out!
It comes with #Python 3.14 :)You can get it from https://thonny.org
I'm investigating the compatibility with the
thonny-py5modeplug-in and so far it seems to work fine. https://github.com/py5coding/thonny-py5mode/discussions/95 -
#ThonnyIDE 5.0.0 is out!
It comes with #Python 3.14 :)You can get it from https://thonny.org
I'm investigating the compatibility with the
thonny-py5modeplug-in and so far it seems to work fine. https://github.com/py5coding/thonny-py5mode/discussions/95 -
#ThonnyIDE 5.0.0 is out!
It comes with #Python 3.14 :)You can get it from https://thonny.org
I'm investigating the compatibility with the
thonny-py5modeplug-in and so far it seems to work fine. https://github.com/py5coding/thonny-py5mode/discussions/95 -
#ThonnyIDE 5.0.0 is out!
It comes with #Python 3.14 :)You can get it from https://thonny.org
I'm investigating the compatibility with the
thonny-py5modeplug-in and so far it seems to work fine. https://github.com/py5coding/thonny-py5mode/discussions/95 -
RE: https://pynews.com.br/@villares/115599860678243786
I enjoyed this one :)
I just added a few tweaks and turns (wink) to an example that @py5coding made for out tutorial at #PythonBrasil2025, but it's so much fun playing with it :D -
@[email protected] this includes the wonderful new #py5 tools helper to install #Processing community libraries!
https://py5coding.org/how_tos/use_processing_libraries.html
Now getting #PeasyCam or #QueasyCam is a breeze!
-
I'm obviously completely biased, but, if you are an educator teaching #Python and using #pygame / #pygamece, do check out #py5 (https://py5coding.org).
I'm sure other sprite & game stuff must be easier in pygame, but I'm adapting a #PyMunk example, and IMHO, events are so much easier in py5...
(I'll try post it here tomorrow, I should be doing something else, as usual...)