Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "p5.js"
-
I was presenting a paper about "P5.js". My line began with "P5.js is a javascript library ... (and I went on)".
After my conclusion one of the judges asked me "Is this based on JavaScript?"
My reply "No sir, Magic!".
(Funny part - Got first prize.)6 -
AAARGH ELECTRON IS SO FUCKING...decently pleasant to use?
So I've been working on a FPGA based synthesizer on a Xilinx Arty A7 board (that little Artix 35T chip is surprisingly capable), and since I hate typing commands into a serial stream for anything even decently complex just like any sane person should, I needed something to build a UI for controlling it and other synth projects while I make the Eurorack compatible enclosure and knobs and stuff. I chose Electron because they said it was simple and easy to make cool looking stuff, fast.
And they were right. In like two hours, with Electron and p5.js, starting from zero since I don't know jack about frontend, I had a pretty nice UI driving the hardware synth and effects modules. Not bad. I should use this more often.11 -
!rant
After the last rant where i complained about drawing fishes using p5.js
I added those zombie looking vectorized fishes to my game and it's currently working
Now, I m going to add more fishes then maybe colour too2 -
How often do you get bored (eg. on a bus) and just code something completely stupid on your phone?
(pic is the result of some spaggeti I made on a bus today)7 -
Recently I discovered p5.js library and I can't believe that I was writing hundred lines before to make a fcking interactive GUI. The best part: it's based on Processing.7
-
A friend of mine stayed over and had to leave early. Idiotic as I am I set the alarm an hour earlier than necessary. Now that he's left there's no way I can go back to sleep again, so I've had plenty of time to track translations in p5.js, while my GF's sleeping. Aaah, aren't weekends wonderful?2
-
In my previous rant i complained about no irregular sprite collision detection libraries.
So after messing up with curves and line in p5.js I gave up on creating the fish like a complete caveman.
I wrote a simple vector paint program which can return the set of points on console logging, and here is the result5 -
Opening Discussion Here,
I am trying to make a simple zen game that use Neural Network. the game is simple just a square object with a certain Viewing Angle and Viewing Distance with an objective is finding a food in a map with some other non food object as an obstacle.
i am encountered some problem. i am trying to find a way to make "seeing object in certain viewing region" and i am come up with two ideas described in the picture below. the problem is, i don't want to feed the NN with too much information, by that i mean i don't want to tell the AI what object it is, i want it to find out what it is by it self. and i cannot find a way to implement this either because of the framework limitation that i use (p5.js) or simply i cannot find a way how to.
i am on my way there tho, currently here i am (in pseudocode):
https://pastebin.com/7Ae1ZNYa
what do you think ?9 -
I was trying to build a simple 2D (drag the fish to eat other fish) game in JavaScript, cause why not there are already many libraries i will certainly find one for my use.
I'm already familiar with p5.js thanks to Daniel Shiffman and his coding train sessions.
I thought to build the game with p5.js with the play and 2Dcollide libraries, but it turns out they don't have a custom irregular sprite collision detection neither the other thousands libraries which are rotting on github.
Guess, I need to build somethig own my own.
And I also hate it, cause I have to design those fishes, the main game logic, this collision detection function and levels
I need a coffee with a coding partner2 -
Either I am dumb or the usage of p5.js functions makes it either hard or impossible to test with jest. Constructor properties are thrown away (which I need) and all methods are mocked, if I automock, or I've got the pleasure to mock everything inside the class. Otherwise of course jest complains that p5's color() isn't defined. And mocking everything manually is not safe in case of class changes.
Of course p5's tdd tutorial isn't helping, as it seems to mock everything.
I need like a pro/mentor or smth for this... -
Algorithm Design Course Assignment: Sort a hexadecimal string using 4 different sorting algorithms, and display each pass on a webpage. Easy enough yeah? Oh wait. Boomer professor wants us to use a canvas based javascript library called P5.js
Why the fuck. would you enforce some random ass boomer ass javascript library on the class, rather than let students choose something they're more comfortable with so they can focus on the core of the project. IMPLEMENTING ALGORITHMS. OR AT LEAST PROVIDE BOILERPLATE CODE?? GAH!!!!!!!!15