Skip to content

A small, clean and neat 2d renderer lib. Kept in functional style.

License

Notifications You must be signed in to change notification settings

maciekblim/frendr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

frendr

A small, clean and neat 2d renderer lib. Kept in functional style.

const r = rect(w, h)
            .translate(x, y)
            .scaleX(sx)
            .rotate(a);
const r = translate(x, y)(
          scaleX(sx)(
          rotate(a)(
          rect(w, h)));
const r = compose(
    rotate(a),
    scaleX(sx),
    translate(x,y),
    rect(w, h)
);
const r2 = rcompose(
    rect(w, h),
    translate(x,y),
    scaleX(sx),
    rotate(a)
);

About

A small, clean and neat 2d renderer lib. Kept in functional style.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published