5 projects tagged "jsclasses"
Canvas Turtle is an object that interprets and renders graphic commands in a Canvas. It provides an API for rendering basic drawing primitives in 2D and includes commands that define the position of the graphics to be rendered, conditionals, loops, and so on. Commands are supplied as text strings with a simple syntax.
Gestures is an object that can recognize user gestures that form configurable shapes. It can listen to events of the user moving the mouse forming known gesture shapes. The object can recognize custom gesture shapes defined by a list of vertex points of the shape. A given callback function is invoked when the object recognizes a known user gesture shape. The object can also draw the gesture shape as the user moves the mouse.
Isoworld can render 3D isometric cubes from three page elements. It takes the identifiers of three page elements and adjusts their CSS transform properties so they form the faces of a cube which appears in the page with the 3D isometric perspective. It can also use a fourth element to be displayed as the shadow of the cube on top of another element which appears as the ground.
Pop under JS is an object that can be used to display interstitial advertising. It generates HTML and JavaScript that makes advertising appear on the current page, and then disappear if the user clicks on the skip link or after a given period of time. The same user may not be exposed to adverts for a given period of time. The class may invoke given callback functions after the advertisement is displayed, as well when a user clicks the skip link, or when an advertisement exposure period ends.