Giter VIP home page Giter VIP logo

3d-plot's Introduction

Attempt to create an anaglyphic image (https://en.wikipedia.org/wiki/Anaglyph_3D) to be plotted on the pen plotter at Recurse Center.

Steps:

  • Removed the background from the image in Gimp.
  • Ran this to convert to a black image: convert yayoi-original -fuzz 2% -transparent white result.png convert result.png -threshold 41% result.png convert result.png -negate result.png
  • Opened the resulting image in Inkscape.
  • Combined the paths into one.
  • Copied the resulting single path twice, set the colour on one to magenta (ff0270) and on the other to cyan(06d0e3). The colur codes don't actually matter because the colours are going to be determined by the pens you put in the pen plotter.
  • Bring the black layer to the front.
  • Offset the position of the two coloured layers (in opposite directions) so they're not totally covered by the black layer.
  • Use the Path Difference feature (go to the Path menu and select Difference) to just get the cyan/magenta parts that will be visible.
  • Export each layer as a png. Now you should have a black png which is the full image, a cyan png which is just the cyan parts which won't be covered by the black and a magenta png which is just the magenta parts which won't be covered by the black. Name your pngs as myfilename-black, myfilename-cyan, myfilename-magenta.
  • Generate the hpgl files by running node convert.js myfilename. This will generate a hpgl file for each colour.
  • Send the hpgl files to the plotter one by one using the chunker - https://github.com/WesleyAC/plotter-tools/tree/master/chunker

3d-plot's People

Contributors

amymc avatar

Watchers

 avatar

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.