One visual idea a day py5 processing python
 
 
 
 
 
Go to file
Alexandre B A Villares 546848291e readme improv 2018-04-05 23:20:15 -03:00
_layouts
assets/css
s041 day 41 2018-02-10 11:03:21 -02:00
s042 day 44 2018-02-13 17:15:35 -02:00
s043 day 43 (and some older fixes) 2018-02-12 09:12:03 -02:00
s044 Merge branch 'master' of https://github.com/villares/sketch-a-day 2018-02-13 21:04:32 -02:00
s045 day 47 2018-02-16 22:58:07 -02:00
s045b day 50 2018-02-19 14:53:30 -03:00
s046 day 47 2018-02-16 22:58:07 -02:00
s047 smaller GIF 2018-02-16 23:02:31 -02:00
s048 day 48! 2018-02-18 13:23:36 -03:00
s049 day 50 2018-02-19 14:53:30 -03:00
s050 50 comments 2018-02-19 18:26:46 -03:00
s051 51 fix 2018-02-22 11:22:43 -03:00
s052 day 53 (& 52 refactor) 2018-02-22 10:52:30 -03:00
s053 comments and promissing a new arrow def will come… 2018-02-22 12:31:56 -03:00
s054 day 54, readme 2018-02-23 10:13:40 -03:00
s055 head comment 55 2018-02-26 22:27:25 -03:00
s056 Day 57 2018-02-26 16:15:46 -03:00
s057 Day 57 2018-02-26 16:15:46 -03:00
s058 58 head comment 2018-03-01 00:10:07 -03:00
s059 59 small fixes 2018-03-01 00:09:01 -03:00
s060 small adjustments 2018-03-02 01:22:48 -03:00
s061 Merge branch 'master' of https://github.com/villares/sketch-a-day 2018-03-03 15:29:08 -03:00
s062 62 gif! 2018-03-03 16:05:30 -03:00
s063 gig 63! 2018-03-04 22:47:17 -03:00
s064 gif 64 2018-03-05 21:20:33 -03:00
s065 say 66 2018-03-07 21:36:47 -03:00
s066 say 66 2018-03-07 21:36:47 -03:00
s067 day 68 2018-03-09 22:08:04 -03:00
s068 fixed 68's comments! 2018-03-10 10:28:29 -03:00
s069 fixing comments 2018-03-11 19:06:38 -03:00
s070 71 2018-03-12 22:29:33 -03:00
s071 71 2018-03-12 22:29:33 -03:00
s072 say 73 2018-03-14 11:23:57 -03:00
s073 comments 2018-03-14 11:25:13 -03:00
s074 frameRate() should not be inside draw()!!! 2018-03-24 23:03:25 -03:00
s075 frameRate() should not be inside draw()!!! 2018-03-24 23:03:25 -03:00
s076 frameRate() should not be inside draw()!!! 2018-03-24 23:03:25 -03:00
s077 frameRate() should not be inside draw()!!! 2018-03-24 23:03:25 -03:00
s078 frameRate() should not be inside draw()!!! 2018-03-24 23:03:25 -03:00
s079 frameRate() should not be inside draw()!!! 2018-03-24 23:03:25 -03:00
s080 frameRate() should not be inside draw()!!! 2018-03-24 23:03:25 -03:00
s081 frameRate() should not be inside draw()!!! 2018-03-24 23:03:25 -03:00
s082 small fixes 2018-03-26 20:58:54 -03:00
s083 small fixes 2018-03-26 20:58:54 -03:00
s084 small fixes 2018-03-26 20:58:54 -03:00
s085 gif 85! 2018-03-26 21:16:26 -03:00
s086 day 86 2018-03-27 23:25:17 -03:00
s087 clean up 2018-03-29 22:30:08 -03:00
s088 renamed circles & squares 2018-03-30 13:03:23 -03:00
s089 rectMode() comment 2018-03-30 11:58:40 -03:00
s090 day 90 2018-03-31 21:13:41 -03:00
s091 segond clean up 2018-04-02 00:50:22 -03:00
s092 fix 92 gif & 93 2018-04-03 22:01:02 -03:00
s093 day 94 2018-04-04 08:14:37 -03:00
s094 clean day 94 2018-04-05 00:48:35 -03:00
s095 day 95 2018-04-05 22:59:17 -03:00
s180101
s180102 49.... 2018-02-19 11:46:54 -03:00
s180103
s180104
s180105
s180106
s180107
s180108
s180108_liveEdu
s180109
s180110
s180111
s180112
sketch_180113a
sketch_180114a
sketch_180115a
sketch_180116a
sketch_180117a
sketch_180118a
sketch_180119a
sketch_180120a
sketch_180120b
sketch_180121b
sketch_180123b
sketch_180124b
sketch_180125c
sketch_180126c
sketch_180127c
sketch_180128c
sketch_180129c
sketch_180130c
sketch_180131c
sketch_180201c
sketch_180202c
sketch_180202campus
sketch_180203c
sketch_180204b Update sketch_180204b.pyde 2018-02-06 09:45:19 -02:00
sketch_180205b Update sketch_180205b.pyde 2018-02-06 09:37:34 -02:00
sketch_180206a day 37 2018-02-06 20:38:25 -02:00
sketch_180208d intro comments 2018-02-09 22:08:42 -02:00
sketch_180208e intro comments 2018-02-09 22:08:42 -02:00
sketch_180209a day 43 (and some older fixes) 2018-02-12 09:12:03 -02:00
.gitignore day 82 2018-03-23 19:36:40 -03:00
README.md readme improv 2018-04-05 23:20:15 -03:00
_config.yml

README.md

Hi! I'm [Alexandre Villares](https://abav.lugaralgum.com), let's see if I can make one small program (*sketch*) a day. I'm working mostly with [Processing Python Mode](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN) and sometimes [Processing Java Mode](https://processing.org) and[P5JS (JavaScript)](p5js.org) or other stuff. If you enjoy this, make a small donation [here](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=HCGAKACDMVNV2) or with [Patreon](https://patreon.com/arteprog)
# sketch-a-day ### one visual idea a day [on GitHub!] Hi! I'm Alexandre Villares, let's see if I can make one small program (sketch) a day. I'm working mostly with Processing Python Mode and sometimes Processing Java Mode andP5JS (JavaScript) or other stuff. If you enjoy this, make a small donation here or with Patreon

s095

095: code [Py.Processing]

Complete rewrite of the 'Inputs' helper

# Ask user for Arduino port, uses slider if none is selected, use on `setup()`
global input
input = Input(Arduino)

# on `draw()`read analog pins 1, 2, 3, 4 or sliders
pot1 = input.analog(1)
pot2 = input.analog(2)
pot3 = input.analog(3)
pot4 = input.analog(4)

tilt = input.digital(13) # also triggered by [space bar]

# When on sliders, this draws them and checks mouse dragging / keystrokes
input.update()


s094

094: code [Py.Processing]

Connection 'rate' can be less than 1, prevents less than 2 nodes


s093

093: code [Py.Processing]

Nodes without connection are now removed

    COM_ARESTAS = set()  # para guardar pontos com aresta
    for aresta in Aresta.ARESTAS:
        if (aresta.p1 not in Ponto.SET) or (aresta.p2 not in Ponto.SET)\
                or (aresta.p1 is aresta.p2):  # arestas degeneradas
            Aresta.ARESTAS.remove(aresta)   # remove a aresta
        else:                # senão, tudo OK!
            aresta.desenha()  # desenha a linha
            aresta.puxa_empurra(TAM_ARESTA)  # altera a velocidade dos pontos
            # Adiciona ao conjunto de pontos com aresta
            COM_ARESTAS.update([aresta.p1, aresta.p2])
    Ponto.SET = COM_ARESTAS  # isto remove pontos sem nenhuma aresta
 

s092

092: code [Py.Processing]

Dynamic change of connection rate

if NUM_PONTOS * NUM_CONNECT > len(Aresta.ARESTAS):
        rnd_choice(list(Ponto.SET)).cria_arestas()
    elif NUM_PONTOS * NUM_CONNECT < len(Aresta.ARESTAS):
        Aresta.ARESTAS.remove(rnd_choice(list(Aresta.ARESTAS)))

s091

091: code [Py.Processing]

Major rethink of my Arduino/Firmata code. I can now choose on start between sliders and potentiometers.


s090

090: code [Py.Processing]

Opaque strokes, no fill, randomized colours by column.


s089

089: code [Py.Processing]

X stroke now is translucent and grid elements have random colour inside grids.


s088

088: code [Py.Processing]

Filled rects, ellipses and losangles (without sktroke) and Xs


s087

087: code [Py.Processing]

No fill again, less colours. Variable/random number of elements per grid.


s086

086: code [Py.Processing]

Translucent fill & some stroke weight


s085

085: code [Py.Processing]

Some colour, and some crazy meddling with the Slider class...


s084

084: code [Py.Processing]

Make the grid's position/origin align based on the spacing size (super- grid)


s083

083: code [Py.Processing]

Xs and rotated rectangles


s082

082: code [Py.Processing]

Squares and ellipses


s081

081: code [Py.Processing]

Let's try some grids


s080

080: code [Py.Processing]

More arrows (black and white alternate by generation)


s079

079: code [Py.Processing]

Arrows (right black, left white)


s078

078: code [Py.Processing]

Color


s077

077: code [Py.Processing]

Random branch reduction is now less simmetric, and random seed changes on depth change.


s076

076: code [Py.Processing]

Stroke weight and some transparency


s075

075: code [Py.Processing]

... and slightly different parameters and recursion level control instead of lenght


s074

074: code [Py.Processing]

Adaptomg Shiffmans recusive Tree, with sliders or Pots...


s073

073: code [Py.Processing]

The code remains ugly :(


s072

072: code [Py.Processing]

Let's mix some arrows?


s071

071: code [Py.Processing]

Thicker and with a saturation slider (no more scale offset)


s070

070: code [Py.Processing]

Thicker and with a saturation slider (no more scale offset)


s069

069: code [Py.Processing]

Added rotation.


s068

068: code [Py.Processing]

... and with sliders (by Peter Farell)


s067

067: code [Py.Processing]

Something else.


s066

066: code [Py.Processing]

Arrow grid networks can be sized and placed...


s065

065: code [Py.Processing]

Arrow grid networks are now objects...


s064

064: code [Py.Processing]

Revisiting yet an older graph, adding arrows...


s063

063: code [Py.Processing]

Revisiting an older graph adding arrows...


s062

062: code [Py.Processing]

+ and - keys control the distange/range of targes in 0.5 * SPACING increments


s061

061: code [Py.Processing]

Sometimes we have multiple arrows now out of each node...But I reduced the range (distance) they can point to.


s060

060: code [Py.Processing]

Complete Object Oriented refactor...


s059

059: code [Py.Processing]

Back to a list of points, now every point of the grid has a node. Limited points_to random each.


s058

058: code [Py.Processing]

Now with some deepcopy of changeable imutable namedtuples (containing mutable lists), and some lerp()


s057

057: code [Py.Processing]

Revisited 54 and now I'm re-selecting random points_to nodes...


s056

056: code [Py.Processing]

Arrow grid moving in HSB colour space


s055

055: code [Py.Processing]

Grid revisited


s054

054: code [Py.Processing]

New arrows! With a "Tail" parameter...


s053

053: code [Py.Processing]

Big invisible refactor (no more point-grid to select from, now a list of possible X and Y positons to choose). On the visible side, fewer elements, and non-pointing elements redrawn in red on top.


s052

052: code [Py.Processing]

White lines first, black arrows on top.


s051

051: code [Py.Processing]

Points now on a grid.


s050

050: code [Py.Processing]

Arrows now...


s049

049: code [Py.Processing] Yet more graphs


s048

048: code [Py.Processing] Yet more graphs


s047

047: code [Py.Processing] Yet more graphs


s046

046: code [Py.Processing] Yet more graphs


s045

045: code [Py.Processing] Yet more graphs


s044

044: code [Py.Processing] More graphs


s043

043: code [Py.Processing] More graphs


s042

042: code [Py.Processing] Yet another interactive recursive thingy, the image on the right is shown with a key pressed


s041

041: code [Py.Processing] Yet another interactive recursive thingy, the image on the right is shown with a key pressed


040 040

040: sketch_180209a [Py.Processing] More recursion


039

039: sketch_180208e [Py.Processing] Manoloide inspired recursion


038

038: sketch_180208d [Py.Processing] Saskia Freeke inspired grid


037

037: sketch_180206b [Py.Processing] "Carnahacking is near!"


036

036: sketch_180205b [Py.Processing] Added some mouse disturbance


035

035: sketch_180204b [Py.Processing] Preparing for "Carnahacking"


034

034: sketch_180203c [Py.Processing] Like 33 but again with "w squared" circles


033

033: sketch_180202c [Py.Processing] Like 32 but again with lines


032

032: sketch_180201c [Py.Processing] Like 29 but with moving points after the gesture is done


031

031: sketch_180130c [Py.Processing] Like 29 but with moving points after the gesture is done


030

030: sketch_180130c [Py.Processing] Like 29 but with 3D and PeasyCam orbit...


29c

029: sketch_180129c [Py.Processing] Like 27 but with circles


28c

028: sketch_180128c [Py.Processing] Like 27 but on grayscale


27c

027: sketch_180127c [Py.Processing]YouTube

Saving a list of points to animate colour... Mouse speed changes recorded colour & strokeWeight()


26

026: sketch_180126c [Py.Processing] Mouse speed changing colour & strokeWeight()


25

025c: sketch_180125b [Py.Processing] Mouse speed changing strokeWeight()


24

024b: sketch_180124b [Py.Processing] Maybe tomorrow I'll try adding some sliders & movement to this graph ? [nah...]


23

023b: sketch_180123b [Py.Processing] Farrel's Sliders adding random displacement


022: missed :(


21b

021b: sketch_180121b [Py.Processing] Playing with Peter "Hacking Math Class" Farrel's Sliders!


20b

020b: sketch_180120b [Py.Processing] I was stuck on my DBN conversion sketch 20a, so this HSB shape play is 20b...

20a

020a: sketch_180120a [Py.Processing] Refactored the code generation, removed most of the repeated vertices... C D E G O R not nice yet…


19a

019: sketch_180119a [Py.Processing] DBN Letters: Now working on a new approach, generating vertex/Shape code, not there yet...


18a

018: sketch_180118a [Py.Processing] DBN Color font? Nah…


17a

017: sketch_180117a [Py.Processing] John Maeda's dbnletters.dbn code from Design by Numbers on Processing Python Mode


16a

016: 16a [Py.Processing] Converting some Typography code from Design by Numbers, almost there!


15a

015: sketch_180115a [Py.Processing] Converting some Typography code from Design by Numbers, first trials


14a

014: sketch_180114a [Py.Processing] Another 3D Graph


13a

013: s180113 [Py.Processing] 3D Graph


s180112

012: s180112 [Py.Processing] Another Graph Take


s180111

011: s180111 [Py.Processing] A Graph Take


s180110

010: s180110 [Py.Processing] More Manoloide inspired balls PNG (derived from a sketch by Manuel Gamboa Naon)


GIF

009: s180109 [Py.Processing] Balls for Manoloide GIF (derived from a sketch by Manuel Gamboa Naon)


GIF

008: s180108 [Py.Processing] Grid of Platonic Solids in Python Mode GIF


GIF

007: s180107 [Processing Java] Another grid of Platonic Solids in Java Mode GIF


GIF

006: s180106 [Processing Java] Grid of Platonic Solids in Java Mode GIF


005: s180105 [p5js] Line Tetrahedrons in p5*js - interactive


GIF

004: s180104 [Processing Java] Tetrahedrons in Java Mode- GIF


GIF

003: s180103 [Py.Processing] Tetrahedrons Python Mode- GIF


002: s180102 [Py.Processing] Many Stars 3D - YouTube


001: s180101[Py.Processing] Many Stars - YouTube (inspired by my own p5js Xmas & New Year card code)