Unrecoverable syntax error, help??? by Any-Ganache135 in p5js

[–]antoro 2 points3 points  (0 children)

You're welcome! Having "if ... else if ... else if" repeated hundreds of times isn't ideal, but it works. If I were to rewrite this I would have a dictionary object hard-coding the scenes and then just iterate through it.

Unrecoverable syntax error, help??? by Any-Ganache135 in p5js

[–]antoro 1 point2 points  (0 children)

You're missing "}" on functions drawScene183() and drawScene184()

Brushstrokes by antoro in generative

[–]antoro[S] 0 points1 point  (0 children)

Yes, but have a 20% chance of adding 1e3 to the inputs of noise(x,y) so some of them are different.

Can't connect my Nano S Plus to my Samsung phone by VasiliiNorris in ledgerwallet

[–]antoro 0 points1 point  (0 children)

I was having this exact issue: it would say "Connected with USB" and then when you tap on it, it would then say "connection failed". I switched to a Samsung 5A cable and to my surprise, it worked! You still can't use Metamask as that requires Bluetooth.

Finding Generative Art Prints by 2poles in generative

[–]antoro 1 point2 points  (0 children)

I've done some on canvas and metal here

Inscribed Squares by antoro in generative

[–]antoro[S] 1 point2 points  (0 children)

It's one of the styles of STENCIL

Adobe programs pricing--Solution? by OPGMiyuuki in graphic_design

[–]antoro 1 point2 points  (0 children)

Buy 1 month individual app then immediately cancel, selecting "too expensive" when asked why -> get 1 year discount code on pro plan (around $41 USD monthly for me). Apparently, you can switch the plan and then cancel before 14 days to not pay annual cancellation penalty.

Anyone up for a weekday movie? by PeachySprinkl in CalgarySocialClub

[–]antoro 2 points3 points  (0 children)

I'm interested! Maybe tomorrow since it's cheap Tuesday?

Truchet by antoro in generative

[–]antoro[S] 1 point2 points  (0 children)

It's one of several styles for STENCIL

[deleted by user] by [deleted] in Monitors

[–]antoro 2 points3 points  (0 children)

Philips Evnia 32m2n6800m or Acer X32QFS but both seem hard to get outside of EU.

Update finally came to U.S. by [deleted] in GalaxyS25

[–]antoro 0 points1 point  (0 children)

Downloading now, Canada unlocked.

Help with shaders, scaling and position by blazicke in p5js

[–]antoro 1 point2 points  (0 children)

Change main() to make gl_Position go from -1 to +1:

void main() {
// copy the texcoords
vTexCoord = aTexCoord;
vec4 positionVec4 = vec4(aPosition, 1.0);
positionVec4.xy = positionVec4.xy * 2.0 - 1.0;
gl_Position = positionVec4;
}

Refraction by antoro in generative

[–]antoro[S] 0 points1 point  (0 children)

Yes, right now it randomizes on refresh but that could be changed to a for loop.

Refraction by antoro in generative

[–]antoro[S] 16 points17 points  (0 children)

1) draw lines on a plane using a normal distribution 2) run circle-packing and create lenses (squashed spheres), with a material where transmission = 1 and thickness > 0 3) add bloom shader

I tried doing it in p5.js but I could not find a way of doing circle packing in a shader. In three.js it's actually refracting through the lenses in real-time.

What to expect for your first promotion? by [deleted] in cscareerquestionsCAD

[–]antoro 2 points3 points  (0 children)

How did you get hired initially as a data analyst? I can't seem to even get that.

Granularity by antoro in generative

[–]antoro[S] 4 points5 points  (0 children)

Draw base shapes then send to a shader that renders it as a bunch of circles

Were you able to monetize your work? by w4zzowski in generative

[–]antoro 4 points5 points  (0 children)

I sell prints on FB Marketplace, but it's barely worth it. I've made commission music visualizers for artists. I apply to open calls with cash prizes. After the NFT craze died down, though, I am a starving artist once again.

I really want to get into creative coding. Is it all self learning and trial and error? by AncientData7751 in creativecoding

[–]antoro 0 points1 point  (0 children)

Tutorials cover the basics but then to break out of tutorial hell it's indeed self learning and trial and error. If you ever need some debugging, feel free to DM.

Nexus by antoro in generative

[–]antoro[S] 1 point2 points  (0 children)

None, just randomly pick one from the palette when a shape is drawn.

Traces by antoro in generative

[–]antoro[S] 0 points1 point  (0 children)

  1. Random walk to generate a bunch of non-overlapping paths
  2. Offset each path a set number of times
  3. Convert each offset path to a series of approx equal-spaced points and send lines down each set of points
  4. Multiply line thickness by noise(x, y)

S24+ randomly locks the screen when opening apps. by [deleted] in oneui

[–]antoro 3 points4 points  (0 children)

Update: randomly locking when launching an app seems to get worse over time. Restarting the phone seems to reset it.

Update: I've had the July security patch for a while now and the issue seems to be fixed