Coder Social home page Coder Social logo

antiboredom / p5.riso Goto Github PK

View Code? Open in Web Editor NEW
292.0 7.0 30.0 14.35 MB

A p5js library for risograph printing by Sam Lavigne and Tega Brain.

Home Page: https://antiboredom.github.io/p5.riso/

License: Other

JavaScript 100.00%
p5js p5 riso risograph

p5.riso's Introduction

p5.riso.js

Documentation: https://antiboredom.github.io/p5.riso/

Notes:

To do:

  • add more dithering options
    • add dithering options for graphics, or for entire color object (layers)
  • document halftones
  • function to select like colored pixels (magic wand)
  • translate image color spaces
  • document CMYK channel compression function

p5.riso's People

Contributors

antiboredom avatar crystalminyichen avatar erinachavez avatar notwaldorf avatar paollabd avatar rachelhyman avatar robinsloan avatar shuuji3 avatar tegacodes avatar vwls avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

p5.riso's Issues

Cant get examples to work that arent using images

I am so excited to use this library, thank you so much for making it!

I'm not sure if I am missing something but it seems lots of examples dont work in the p5 editor (or when I recreate the examples locally) e.g:

Screenshot 2021-12-19 at 15 41 44

Screenshot 2021-12-19 at 15 42 16

Screenshot 2021-12-19 at 15 43 20

Have I missed something?
thanks!

TypeError: this._curElement is undefined (p5.riso: line 104)

Getting this export error while trying to do something rather complex. looping over an object that is drawing with begin/end shape.

Does this seem like an issue in the Library. I really cant tell, but I've not run into any issues yet with similar types of sketches that don't instantiate a class.

Screen Shot 2019-09-27 at 10 44 52 AM

the sketch in question: https://editor.p5js.org/benmoren/sketches/EhMoKa5zH

something similar which is fine: https://editor.p5js.org/benmoren/sketches/z_C5L0b-q

Library

Consider submitting this to the processing foundation to add as an official library?

Does not work in instance mode

Thank you so much for this library! It's so great!

I tried to use it in instance mode and couldn't, since the library assumes everything is in global mode. I've patched together a local copy that uses a passed in instance, but I think the constructor API is technically a breaking change (needs a new parameter) so I didn't want to send a PR unless you wanted this. Let me know if I should!

Examples for extractRGBChannel and extractCMYKChannel functions not working

I'm trying to run the examples for the extractRGBChannel and extractCMYKChannel functions given on the website but it seems that the draw function does not do anything. Is it a faulty behaviour ? Is the function the same as using the image function (see comment in the code below)?

Reproduce the issue
Use the following code in the web editor to reproduce the issue:

let img_url = "https://images.unsplash.com/photo-1579202673506-ca3ce28943ef?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=668&q=80";
 
let img;

function preload() {
  img = loadImage(img_url);
}

function setup() {
  // from the website   
  createCanvas(500, 500);
  let blue = new Riso("blue");
  let red = new Riso("red");
 
  let justBlues = extractRGBChannel(img, "blue"); //extract blue from img
  let justReds = extractRGBChannel(img, "red"); //extract red from img
  
  // these 2 functions does not seem to display anything
  blue.draw(justBlues); //draw justblues to blue layer
  red.draw(justReds); //draw justred to red layer
  
  // is the first function above similar to the one below?
  //blue.image(justBlues, 0, 0);
  
  drawRiso();
}

Many thanks for the the library. It's a lot of fun using it ๐Ÿ˜ƒ

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.