GithubHelp home page GithubHelp logo

joeaguilar / cglitcher Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 2.12 MB

A glitch engine written in C++ with Node.js bindings

License: MIT License

Makefile 7.52% Python 8.56% C++ 67.39% JavaScript 8.11% HTML 8.41%

cglitcher's Introduction

cGlitcher

Incoporating my C++ image editor into Node.js

A Node C++ addon gives you the power to leverage C++ to supercharge tasks. Put your Node in fast mode! This addon has a dependency on OpenCV so do this first: brew install opencv you can also follow this guide here.

Several files are included under server

  1. directoryglitcher.js
  2. directoryglitcherrandom.js
  3. oneimageglitcher.js
  4. socketioglitcher.js
  5. utils.js Dont use this

directoryglitcher takes the arguments: node /path/to/directoryglitcher.js /path/to/directory/ [effectargs]

directoryglitcherrandom takes the arguments: node /path/to/directoryglitcherrandom.js /path/to/directory/

oneimageglitcher takes the arguments: node /path/to/oneimageglitcher.js /path/to/image.jpg [effectargs]

socketioglitcher takes the arguments: node /path/to/socketioglitcher and go to localhost:1337

The effects syntax work like this

  1. open square bracket "["
  2. number for order "0"
  3. colon ":"
  4. letter for effect "A"
  5. comma ","
  6. Additional arguments following the previous example
  7. close square brack "]"

Examples:

[1:s,2:a,0:p,4:l]
[2:s,1:W]
[0:p]

You can think of the order as holding two cups of water. When you run an effect, it places a filter on the first cup and pours water into the second cup. You choose which cup is the first cup and which is the second. Keep in mind only the information in the first cup is made into an image.

Order Map:

Num Order
0 1 to 2
1 2 to 1
2 1 to 1
3 2 to 2

Effect Map nAmEs aRe cAsE SenSiTivE:

Key Name
a zoomth
b zoom_b
c zoom_r
d crunch
e pixelate
f outtashape
g outtacircle
h outtasquare
i outtatriangle
j rgb_2_bgr
k rgb_2_gbr
l rgb_2_grb
m rgb_2_brg
n wet_reverb
o deplace
p pixelsort
s smosht
t posht
u fosht
v losht
w gradient_blend_add_sample
x gradient_blend_add_source
y gradient_blend_subtract_sample
z gradient_blend_subtract_source
w gradient_blend_add_sample
x gradient_blend_add_source
y gradient_blend_subtract_sample
z gradient_blend_subtract_source
A gradient_blend_add_sample
B gradient_blend_add_source
C gradient_blend_subtract_sample
D gradient_blend_subtract_source
W gradient_blend_add_sample
X gradient_blend_add_source
Y gradient_blend_subtract_sample
Z gradient_blend_subtract_source

cglitcher's People

Contributors

joeaguilar avatar

Stargazers

 avatar

Watchers

 avatar  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.