Skip to content

Instantly share code, notes, and snippets.

@jhancock532
Last active November 11, 2020 20:39
Show Gist options
  • Save jhancock532/a12f01689c9f3660ae15f119e673462c to your computer and use it in GitHub Desktop.
Save jhancock532/a12f01689c9f3660ae15f119e673462c to your computer and use it in GitHub Desktop.
How to get Dada artists on dada.art
var img = new Image;
img.crossOrigin = "Anonymous";
img.onload = function () {
ctx_final.drawImage(img, 0, 0, img.width * 0.64, img.height * 0.69);
}
img.src = 'https://res.cloudinary.com/dvxmjunfv/image/upload/v1605120751/Photos/Dada_artists__group_photograph__1920__Paris.jpg';
@jhancock532
Copy link
Author

jhancock532 commented Nov 11, 2020

Paste the above code in your browser console while creating a new painting. Make sure you've drawn something (anything) on the canvas first so that the ctx_final is created.
The result can be seen on dada.art at https://dada.art/pa/125237.

@SLRead
Copy link

SLRead commented Nov 11, 2020

Nice hacking the system! You should definitely join our working group to help us 'break' things in testing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment