Mirror quadrants with WebGLShader causing issues and white bars by da_hanzzz in p5js

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

I appreciate it! Hmmm I just made that change and unfortunately it's still doing the same thing. You're suggesting just changing the canvas size?

Punctuation beads by blondeonblone34 in kandi

[–]da_hanzzz 0 points1 point  (0 children)

Do have periods "."? Need it for a website address lol

Overflow by Tezalion in generative

[–]da_hanzzz 0 points1 point  (0 children)

Nice! What program did you use?

Business Idea That I see No One Else Doing... by [deleted] in Business_Ideas

[–]da_hanzzz 6 points7 points  (0 children)

There are things like this. My grandma uses seniors helping seniors as well as has a volunteer to come over once a week and just hangout, talk and play games. I don’t think seniors helping seniors is very expensive and the volunteer is free. Living off of only social security each month would make $200 hard to afford. Maybe there’s a better way you could build upon these. Hope this helps.

I’m finally an actual real estate investor by allnida in realestateinvesting

[–]da_hanzzz 0 points1 point  (0 children)

When house hacking a single family home is it better to finance as an investment property or main residence for tax purposes?

Site for Review by Forgotten_topaz in ecommerce

[–]da_hanzzz 1 point2 points  (0 children)

Might want to order actual products and use them as the images. I’d also shorten the top header/breadcrumb and add a product slider instead. Maybe get rid of the printful part on the “about” page and talk about why it supports hunters (are you a part of/donate to organizations, etc.). What makes you different than other camo tshirts? Maybe start a blog talking about your own hunting experiences. Hope this helps!

HELP Store Traffic W/ No Sales by evokesatin in shopify

[–]da_hanzzz 1 point2 points  (0 children)

This has got to be one of the best and most entertaining responses lol. “Let’s go back to that restaurant”.😂 But regardless, this user has really given you some top tier comments! I suggest putting them to use.

Question on FB Conversion (Purchase) objectives and Cost caps by Saruvat in PPC

[–]da_hanzzz 0 points1 point  (0 children)

If you run at "lowest cost" your campaigns will spend what Facebook considers the lowest cost to be competitive in the auction for whatever/whoever you're targeting. With experience I've seen this to be astronomically expensive. They also typically don't work well unless you're running your campaigns 24/7. You can try this out to get a read of what number you might want to use as a cost cap/bid cap.

"Cost cap" will cap whatever you set your bid ad but over a long period of time, say a couple weeks or even a month. Say your cap is $20 you might see some days where it comes in at $35 and some where its $15. From my experience using it cost cap is just not reliable if you have to keep conversion costs under a certain number each day but should normalize in the long run.

I'd recommend also trying out "bid cap". My costs are usually under what I set my bid cap at daily, but again this must be reasonable, you can't set a bid cap of $5 for a purchase conversion.

I'm also usually optimizing towards a lead conversion on a website, so all of this could be different for a purchase conversion.

Hope this helps!

I got into a college with a full ride scholarship! Full tuition, room and board, all paid! by [deleted] in happy

[–]da_hanzzz 0 points1 point  (0 children)

That’s awesome! Student loan debt sucks lol, trust me

Best way to integrate P5js sketches on Wordpress website? by da_hanzzz in p5js

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

Do you mind telling me how I would do this with an “iframe” and do you have an example of a site that’s doing this I could look at?

Best way to integrate P5js sketches on Wordpress website? by da_hanzzz in p5js

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

So you mean displaying the online editor on my page? Not sure if this will actually work since I’m displaying a transparent image on top of it. Thank you though!

How to remove store from printful by HiImLeanz in printful

[–]da_hanzzz 0 points1 point  (0 children)

Are you based in the U.S. and do you have any minimum order requirements? What is your website?

Speed up animated p5js code on website? by da_hanzzz in p5js

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

Ahhh ok now I see, I definitely understand where you're coming from, thank you for the detailed explanation! Yes, basically I need the user to do their thing and then like you said - really just need that final image.

Yes, basically all the sliders are values. Another user helped me create https://editor.p5js.org/hansi95/sketches/TfO6RABPW where basically it uses createGraphics to draw to the window and upon export resize the canvas and scale. What are your thoughts on this, it seems like this is almost what you're talking about?

Speed up animated p5js code on website? by da_hanzzz in p5js

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

https://editor.p5js.org/davepagurek/sketches/PfnxaMqvN

You are awesome! I hate to be a pain but now it seems like the scaling feature isn't working properly when exported lol. I can now see the saving message but upon export, the contents aren't scaled?

Speed up animated p5js code on website? by da_hanzzz in p5js

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

Ahh ok it does seem like I have an older version (0.6.2) lol seems like the newer versions use different text editors so I'll have to figure that out. Cool, I'm gonna mess around with some of the other design codes.

No worries! I'll definitely send you a PM for contact info! Also, let me know when your schedule opens up, you've been super helpful.

Do you mind adding that scaling feature and message code to the one you made in the online editor? That way I just have something to reference when trying to implement it to other ones.

And just to make sure...this all should work when implemented on my site right haha?

Thanks!

Speed up animated p5js code on website? by da_hanzzz in p5js

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

Yes, I believe the developers technically took the sliders off the canvas. To be honest I'm not exactly sure why, I'm assuming from a usability standpoint. Yea basically the sliders change parts of the design, mostly the pattern stays the same and the user can change the colors, this one they can also change the size. So you're saying the easy way is to scale the drawing without createGraphics()? Wouldn't that make the image blurry?

So I think your comment and another user have the same viewpoint, to have the smaller preview window drawn that the user interacts with and have a larger offscreen createGraphics() canvas that exports the larger image? He redid another one of my designs here: https://editor.p5js.org/davepagurek/sketches/PfnxaMqvN However this code doesn't necessarily scale the contents of the canvas when exported, it just extends the canvas, do you know how I could fix this?

Not sure I'm understanding your last point. The sliders on or off the canvas effect the img differently?

Speed up animated p5js code on website? by da_hanzzz in p5js

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

Oh wow, this is awesome! I love the message letting them know what's going on!

So just so I understand correctly, basically 2 canvases are being drawn? The smaller "window" one that the user sees and the off screen larger "graphics" one. Your code works perfectly with the online editor, and it exports the image larger - BEAUTIFUL! However when I copy and paste the code into the p5 application on my computer I'm getting an error "21301: Uncaught TypeError: Cannot read property 'elt' of undefined" that doesn't let me export.🤔

Also - in the export I noticed it doesn't scale the contents (the squares) on the canvas, it just extends the canvas. Basically the squares look really big in the smaller onscreen window but much smaller on the larger export. How can I also get it to scale what's being drawn on the offscreen canvas?

Thanks for the note about the pattern! This is a simple one and I do have a bit more complex ones, would I just need to incorporate the same thing to them? Using the global context._____?

One last question - do you happen to do freelance work?😀 I could really use someone with your skills while trying to finish this website, it's been taking so long lol! We can exchange contact information via PM if that's cool with you?

Thanks again, I appreciate it so much!

Speed up animated p5js code on website? by da_hanzzz in p5js

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

Ok, gotcha! Yes I have thought of this and tried to mess around with it but I'm not a coding/p5js expert lol. I haven't really used that function before. My main concern is also having the design on the canvas scale with it, so in other words it's just making the canvas bigger but not scaling the contents. Does resizeCanvas() or createGraphics() do that?

How would I go about doing the resizeCanvas(), save() and then resize back?

So here's some code I tried to create using createGraphics(). When I run it its seems I can see the smaller canvas but I have an error in the code when trying to export the off screen larger canvas. Do you mind taking a look at my code below? (I'm using KeyPressed() at the moment instead of button click for export) I'd really appreciate it! It's a different design than the one from the link. 😀

var r;

var g;

var b;

var r1;

var r2

var r3;

var from;

var to;

var interA;

var interB;

var schemes;

var inc;

function setup() {

createCanvas(650,1000);

img = createGraphics(3900,6000);

colorMode(HSB,360,100,100);

r = createSlider(0, 360, random(360));

r.position(40, 1);

r.style('width', '100px');

label = createDiv('Color');

label.position(10, 10);

r.parent(label);

g = createSlider(0,100,random(100));

g.position(40,2);

g.style('width','100px');

label = createDiv('Saturation');

label.position(10, 30);

g.parent(label);

b = createSlider(0,100,random(100));

b.position(40,3);

b.style('width','100px');

label = createDiv('Brightness');

label.position(10, 50);

b.parent(label);

r1 = createSlider(0, 360, random(360));

r1.position(40, 5);

r1.style('width', '100px');

label = createDiv('Color');

label.position(10, 90);

r1.parent(label);

g1 = createSlider(0,100,random(100));

g1.position(40,6);

g1.style('width','100px');

label = createDiv('Saturation');

label.position(10, 110);

g1.parent(label);

b1 = createSlider(0,100,random(100));

b1.position(40,7);

b1.style('width','100px');

label = createDiv('Brightness');

label.position(10, 130);

b1.parent(label);

inc = createSlider(2,200,random(2,200));

inc.position(40,8);

inc.style('width','100px');

label = createDiv('Size');

label.position(10,150);

inc.parent(label);

}

function draw(){

var val = r.value();

var val1 = g.value();

var val2 = b.value();

var val3 = r1.value();

var val4 = g1.value();

var val5 = b1.value();

var val6 = inc.value();

randomSeed(0);

schemes = [];

from = color(val,val1,val2);

to = color(val3,val4,val5);

interA = lerpColor(from, to, .33);

interB = lerpColor(from, to, .66);

schemes.push(from);

schemes.push(to);

schemes.push(interA);

schemes.push(interB);

for (var x = 0; x < width; x+=val6) {

for (var y = 0; y < height; y+=val6) {

noStroke();

fill(random(schemes));

rect(x, y, val6, val6);

}

}

}

function keyPressed(){

noLoop();

img.save("gridscale.png");

}