Giter Club home page Giter Club logo

package-graphic-raster-js's Introduction

package-graphic-raster-js

Raster graphics package for the Fōrmulæ programming language.

Fōrmulæ is also a software framework for visualization, edition and manipulation of complex expressions, from many fields. The code for an specific field —i.e. arithmetics— is encapsulated in a single unit called a Fōrmulæ package.

This repository contains the source code for the raster graphics package. It contains reduction to create

The GitHub organization formulae-org encompasses the source code for the rest of packages, as well as the web application.

Capabilities

  • Creation of a blank image
  • Creation of a image from a file
  • Retrieving the dimensions of an image
  • Duplication of an image
  • Pixel operations Set/Get the color of a single pixel
  • Line operations
    • From position to position
    • From position to offset
    • From last position to position
    • From last position to offset
  • Rectangle operations
    • Draw from corner to corner
    • Draw from corner to size
    • Fill from corner to corner
    • Fill from corner to size
  • Circle/ellipse operations
    • Draw from corner to corner
    • Draw from corner to size
    • Draw given center and radius
    • Fill from corner to corner
    • Fill from corner to size
    • Fill given center and radius
  • Arc operations
    • Draw from corner to corner
    • Draw from corner to size
    • Draw given center and radius
    • Fill from corner to corner
    • Fill from corner to size
    • Fill given center and radius
  • Insert image into image
  • Text operations
    • Retrieve size of text when drawing
    • Draw text
  • Turtle graphics
    • Set/get/offset current position
    • Set/get current angle
    • Forward with/without drawing
    • Turn
  • Coordinate system operations
    • Reset coordinates
    • Add translation
    • Add scaling
    • Add rotation
    • Set a coordinate system given coordinates of corners
  • Set state of painting
    • Set/retrieve current color
    • Set/retrieve stroke width
    • Set whether stroke is affected by scale or not
    • Set mode
      • Normal (paint mode)
      • XOR mode
    • Set drawing arc
      • Open
      • Closed (as pie)

Gallery

Visit this Pinterest galley of images created with Fōrmulæ, using the raster graphics package.

package-graphic-raster-js's People

Contributors

laurence-ugalde avatar

Stargazers

 avatar

Watchers

 avatar

package-graphic-raster-js's Issues

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.