home.social

Search

90 results for “py5coding”

  1. #py5 @py5coding's goal is to have 10 monthly sponsors. Let's get the ball rolling with the first 10 sponsors! 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: abav.lugaralgum.com/support-me

    #Processing #Python #CreativeCoding #FLOSS #EduComp

  2. @villares @py5coding @ericof @TomLarrow thank you! I had a blast at #pyconus24 and will be going back next year!

  3. github.com/py5coding/py5genera
    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

  4. """
    sketch_2022_01_17 #genuary #genuary17 #Python #Processing

    Code 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()

  5. """
    sketch_2022_01_17 #genuary #genuary17 #Python #Processing

    Code 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()

  6. """
    sketch_2022_01_17 #genuary #genuary17 #Python #Processing

    Code 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()

  7. """
    sketch_2022_01_17 #genuary #genuary17 #Python #Processing

    Code 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()

  8. """
    sketch_2022_01_17 #genuary #genuary17 #Python #Processing

    Code 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()

  9. # Um exemplo de como exportar um sketch no #py5 (#Processing + #Python) em alta resolução:
    # Usando py5 (py5coding.org) com "imported mode", via plugin no Thonny IDE github.com/tabreturn/thonny-py

    def 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

  10. # Um exemplo de como exportar um sketch no #py5 (#Processing + #Python) em alta resolução:
    # Usando py5 (py5coding.org) com "imported mode", via plugin no Thonny IDE github.com/tabreturn/thonny-py

    def 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

  11. # Um exemplo de como exportar um sketch no #py5 (#Processing + #Python) em alta resolução:
    # Usando py5 (py5coding.org) com "imported mode", via plugin no Thonny IDE github.com/tabreturn/thonny-py

    def 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

  12. # Um exemplo de como exportar um sketch no #py5 (#Processing + #Python) em alta resolução:
    # Usando py5 (py5coding.org) com "imported mode", via plugin no Thonny IDE github.com/tabreturn/thonny-py

    def 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

  13. # Um exemplo de como exportar um sketch no #py5 (#Processing + #Python) em alta resolução:
    # Usando py5 (py5coding.org) com "imported mode", via plugin no Thonny IDE github.com/tabreturn/thonny-py

    def 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

  14. @pythonbynight Mario, I won't be able to attend this year, if you have the chance, please invite people to try out #py5 py5coding.org

  15. #ThonnyIDE 5.0.0 is out!
    It comes with #Python 3.14 :)

    You can get it from thonny.org

    I'm investigating the compatibility with the thonny-py5mode plug-in and so far it seems to work fine. github.com/py5coding/thonny-py

    #py5 #ComputingEducation

  16. #ThonnyIDE 5.0.0 is out!
    It comes with #Python 3.14 :)

    You can get it from thonny.org

    I'm investigating the compatibility with the thonny-py5mode plug-in and so far it seems to work fine. github.com/py5coding/thonny-py

    #py5 #ComputingEducation

  17. #ThonnyIDE 5.0.0 is out!
    It comes with #Python 3.14 :)

    You can get it from thonny.org

    I'm investigating the compatibility with the thonny-py5mode plug-in and so far it seems to work fine. github.com/py5coding/thonny-py

    #py5 #ComputingEducation

  18. #ThonnyIDE 5.0.0 is out!
    It comes with #Python 3.14 :)

    You can get it from thonny.org

    I'm investigating the compatibility with the thonny-py5mode plug-in and so far it seems to work fine. github.com/py5coding/thonny-py

    #py5 #ComputingEducation

  19. #ThonnyIDE 5.0.0 is out!
    It comes with #Python 3.14 :)

    You can get it from thonny.org

    I'm investigating the compatibility with the thonny-py5mode plug-in and so far it seems to work fine. github.com/py5coding/thonny-py

    #py5 #ComputingEducation

  20. RE: pynews.com.br/@villares/115599

    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

  21. #py5 comes with some cool integrations with other #Python libraries, such as the ability to convert #Pillow images, #shapely and #trimesh objects.

    But you can create and register your own conversion functions too!

    py5coding.org/integrations/cus

  22. I'm obviously completely biased, but, if you are an educator teaching #Python and using #pygame / #pygamece, do check out #py5 (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...)