Code Monkey home page Code Monkey logo

cssmatrix's People

Contributors

arian 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cssmatrix's Issues

What about perspective for matrix3d and another script for matrix2d and more..

I now understand what this code is for (I finally read it) and was thinking:

  • can you provide a method similar to this basically something like rotate3d(rx,ry,rz)
  • can you also include method(s) for perspective, as this code does no 3D without specifying a parent perspective, and in many cases an element's perspective is more useful
  • can you also make some similar matrix code for 2D operations?

Whoa that's alot of stuff :)

possibly incorrect initialization when no arguments provided?

to be honest, I don't really understand which number corresponds to what transformation in the matrix, but I've noticed when I initialize the matrix without arguments and call .toString on it, it creates this -
matrix3d(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)
instead of:
matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
(notice the sixth 0 in place of 1).

this second matrix is the default matrix from matrix3d generator website - http://ds-overdesign.com/transform/matrix3d.html
which makes me think that it should be the default in this library too.

again, I don't really know, but thought I'd bring it up. thanks.

edit: just realized I was initializing it with scale Y value of 0. ๐Ÿ˜“

License?

I noticed this library has no license, and I was wondering if you would be open to adding one. If you don't mind, I'd like to add the MIT license. Thoughts?

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.