Drawing.garden
drawing.garden
drawing.garden
Burn all the landscape paintings, why don't you. And why stop there. Burn all the landscapes!
What an bizarre and narrow mindset.
Maybe the purpose is beauty? Pleasure? Contemplation? Maybe a little fun? It's like this person has some specific end in mind that they happen to care about, and anything that isn't it must be pointless.
Some do.
There is a saying . "a man who knows the price of everything and the value of nothing" Oscar Wilde i think.
(For me, much better on mute)
You can draw a garden, so drawing.garden seems very apt to me.
However, sometimes the inaccuracy stems from poor communication (or deliberate lying) on behalf of the communicator, but sometimes it comes from gaps in our own understanding or perspective.
Is this just a silly, shallow little thing, or have you fundamentally missed some key point?
I don't have the answer, but I think that's one of the fun parts of engaging with anyone's random creative output like this. There's always a small chance it could teach us something we didn't know before.
E.g. it made me re-evaluate what "drawing" really is. Especially in a digital context.
Is it a question of fidelity? At what point does altering individual elements (whether pixels on a screen or icons in a grid) in order to represent a larger picture become "drawing". i.e. if the pictures were much smaller and closer together would it feel like drawing?
Is it a question of uniformity of media? i.e. would this feel more like drawing if instead of pictures it was just coloured blocks?
I could go on but you get the point
Why do any of them exist?
p5.js is a JavaScript library for creative coding, with a focus on making coding accessible and inclusive for artists, designers, educators, beginners, and anyone else! p5.js is free and open-source because we believe software, and the tools to learn it, should be accessible to everyone.
https://p5js.orgAmazing Project but I expected that something might happen once I complete it...
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22>
<text y=%22.9em%22 font-size=%2290%22>
:( HN has remove the emoji
</text>
</svg>">
Very neat. Might use that.the grid is made up of <p> fields, I thought you just could replace the sqiggly line (background) with an emoji/text using the right font etc instead of svg/emoji
A region of clovers seems to increase four-leaves clovers.
Edit - ok I guess not, after looking through the code. Still, getting the lion was pretty amazing.
let clickCount = 0;
document.addEventListener('contextmenu', event => { (clickCount == 0) ? clickCount : clickCount--; event.preventDefault() }, false);
window.onclick = function (e) {
return clickCount++;
}
function random(i) {
let emojis = 20;
let creatures = 14;
if (i == 1) {
return (clickCount % (creatures + emojis) < creatures) ? 0.02 : 0.03;
}
else if (i == creatures)
{
return index = clickCount % (creatures + emojis) ;
}
else if (i == emojis)
{
return (clickCount % (creatures + emojis)) - creatures;
}
}The images will cycle, but also give you a random image which you can’t bring back in one cycle of repeating images. I got spider, ant, hedgehog, ladybug, blue butterfly… but no more than twice.
I guess I started looking for intentional patterns. Then I started trying to make patterns (areas of same image). I had a little spark of ‘joy’ when I got a new image, and disappointment when I cycled it away because I was tapping too quickly.
I toyed with this until I didn’t find any more surprises and got bored. Which I feel is just fine.
I read there’s a lion and a snake. Not enough to make me want to play now, but it’s interesting there might be more patterns I did not discover.
I touch a spot and something appears at random. I touch the same spot again and it's replaced by something random. I don't think there is a way to chose what to place in a given spot or to empty it so I don't see the purpose of the game (is it a game?)
Anyway it's OK as first prototype. Just add a menu to choose plants from and it's done.
/* Prevent elastic scrolling on ios */ html { overflow: hidden; }
https://developer.mozilla.org/en-US/docs/Web/CSS/overscroll-...
Please include user-select: none css so clicks with drags don't cause selection
const event = new Event("mousedown")
const pArr = Array.from(document.querySelectorAll("p"))
function switchSymbol(target) {
target.dispatchEvent(event);
}
function switchUntil(target, until) {
while (target.innerText !== until) {
switchSymbol(target);
}
}
for (const p of pArr) {
switchUntil(p, "")
}
Change the second argument of switchUntil to the emoji you want. HN doesn't allow emojisMore of a game but also https://gashlin.net/tests/feat/
This is great. What a fun project
If you’re looking for something more visual, have a dedicated video card, and don’t mind going down a bit of a rabbit hole, do it unreal engine with the bazillion existing free assets. It’s one of the simpler 3D environments to learn to navigate and you can just drag and drop stuff from the free assets. I don’t know that I’ve seen another complex application that’s embraced the “batteries included” concept any more thoroughly. Of course, you can go as deep as you want, but I’ll bet you could get very pretty version up and running in an afternoon.
Need to replace EMOJI with what you want
Can't be bothered writing code that could add a delay so it would look like a pokie machine.
Another fun toy…this one was made on hatch.one, where you can make cool interactive projects without code.