JAVASCRIPT library with which you can easily draw CANVAS HTML

Overview

easycanvas

Quick start

Documentation: gaidadei.ru/easycanvas
Download: gaidadei.ru/easycanvas/easyc.zip

Buy premium: gaidadei.ru/easycanvas/premium (Absolutely no different from the free version, but you have the right to change the file name to "easyc.premium.js")

Download the file easyc.js and use this code:

<canvas id="canvas"></canvas>

<script src="easyc.js"></script>

<script>
  var canvas = document.getElementById("canvas");

  var sheet = new EasyC(canvas, [{
    type: "circle",
    radius: 50,
    x: 100,
    y: 100,
    fill: "#000"
  }]);
  sheet.draw();
</script>

Very easy way to draw

Just add a simple object and the library will draw it (for example: "circle", "triangle", "rectangle", "shape", "text", "image").

new EasyC(canvas, [
{
  type: "circle",
  x: 100,
  y: 100,
  radius: 50,
  fill: "#999"
}, {
  type: "triangle",
  x: 100,
  y: 100,
  angleLeft: 1.5*Math.PI/4,
  angleRight: 1*Math.PI/4,
  base: 150,
  fill: "#999"
}, {
  type: "rectangle",
  x: 100,
  y: 100,
  width: 100,
  height: 100,
  fill: "#999"
}, {
  type: "shape",
  x: 100,
  y: 100,
  width: 100,
  height: 100,
  corners: [
    [-1, -1],
    [0, -0.5],
    [0.2, -0.7],
    [0.4, -0.1],
    [-0.2, 1],
    [-0.8, 0.4]
  ],
  fill: "#999"
}, {
  type: "text",
  x: 100,
  y: 100,
  value: "Hello, world\nSecond stroke\nThird stroke",
  font: "Arial",
  size: 36,
  align: "left",
  fill: "#999"
}, {
  type: "image",
  x: 280,
  y: 260,
  width: 150,
  src: "2.png",
  scale: [1, 1]
}]).draw();

draw canvas html draw canvas html draw canvas html draw canvas html draw canvas html draw canvas html

You can load images and fonts very easily, just provide the url.

src: "2.png"  
font: "url(ShareTechMono.ttf)"
fill: "url(2.png), 0, 0.2, repeat"

draw canvas html image

Very easy make gradient

fill: "grad(linear, 45, 0 #0000ff, 1, #00ff00)"
fill: "grad(radial, 0, #0000ff, 1, #00ff00)"

gradien canvas html

You can set relative and absolute coordinate object.

relative: false

relative ccord canvas html

relative: true 

relative ccord canvas html

You might also like...

Interactive visualizations of time series using JavaScript and the HTML canvas tag

Interactive visualizations of time series using JavaScript and the HTML canvas tag

dygraphs JavaScript charting library The dygraphs JavaScript library produces interactive, zoomable charts of time series: Learn more about it at dygr

Jan 3, 2023

Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:

D3: Data-Driven Documents D3 (or D3.js) is a JavaScript library for visualizing data using web standards. D3 helps you bring data to life using SVG, C

Jan 3, 2023

Lightweight, interactive planning tool that visualizes a series of tasks using an HTML canvas

Lightweight, interactive planning tool that visualizes a series of tasks using an HTML canvas

Planner Lightweight, interactive planning tool that visualizes a series of tasks using an HTML canvas. Try it yourself at plannerjs.dev Plans created

Jan 2, 2023

HTML Canvas game for Vivatech Gamejam of March 2022.

Viva Tech Gamejam A HTML Canvas game made in 2 days for the Vivatech Gamejam of March 22. Requirements Nodejs and Yarn. If you're on MacOS and have Ho

Mar 29, 2022

Renders HTML into the browser's canvas

rasterizeHTML.js Renders HTML into the browser's canvas. See the API. Install $ npm install rasterizehtml Then include a script tag with node_modules

Dec 30, 2022

Demonstration of liquid effect on HTML Canvas using Matter.js and SVG Filters (Blur + Contrast)

Demonstration of liquid effect on HTML Canvas using Matter.js and SVG Filters (Blur + Contrast)

Canvas Liquid Effect Demonstration of liquid (or gooey) effect on HTML Canvas using Matter.js and SVG Filters (feGaussianBlur and feColorMatrix). DEMO

Dec 24, 2022

svgMap is a JavaScript library that lets you easily create an interactable world map comparing customizable data for each country.

svgMap svgMap is a JavaScript library that lets you easily create an interactable world map comparing customizable data for each country. Live demo: h

Dec 25, 2022

🔥 JavaScript Library for HTML5 canvas based heatmaps

🔥 JavaScript Library for HTML5 canvas based heatmaps

heatmap.js Dynamic Heatmaps for the Web. How to get started The fastest way to get started is to install heatmap.js with bower. Just run the following

Jan 2, 2023

The Swiss Army Knife of Vector Graphics Scripting – Scriptographer ported to JavaScript and the browser, using HTML5 Canvas. Created by @lehni & @puckey

Paper.js - The Swiss Army Knife of Vector Graphics Scripting If you want to work with Paper.js, simply download the latest "stable" version from http:

Dec 30, 2022
Owner
null
Javascript Canvas Library, SVG-to-Canvas (& canvas-to-SVG) Parser

Fabric.js Fabric.js is a framework that makes it easy to work with HTML5 canvas element. It is an interactive object model on top of canvas element. I

Fabric.js 23.6k Jan 3, 2023
React + Canvas = Love. JavaScript library for drawing complex canvas graphics using React.

React Konva React Konva is a JavaScript library for drawing complex canvas graphics using React. It provides declarative and reactive bindings to the

konva 4.9k Jan 9, 2023
Canvas rendering library, Sprite manipulation of canvas

el-canvas Canvas rendering library, Sprite manipulation of canvas hello world <div id="app"><div></div></div> yarn add elem-canvas or npm i

null 15 Apr 13, 2022
HTML5 Canvas Gauge. Tiny implementation of highly configurable gauge using pure JavaScript and HTML5 canvas. No dependencies. Suitable for IoT devices because of minimum code base.

HTML Canvas Gauges v2.1 Installation Documentation Add-Ons Special Thanks License This is tiny implementation of highly configurable gauge using pure

Mykhailo Stadnyk 1.5k Dec 30, 2022
Konva.js is an HTML5 Canvas JavaScript framework that extends the 2d context by enabling canvas interactivity for desktop and mobile applications.

Konva Konva is an HTML5 Canvas JavaScript framework that enables high performance animations, transitions, node nesting, layering, filtering, caching,

konva 8.7k Jan 8, 2023
A web app that shows visualizations of the most used graphs algorithms such as BFS, DFS, Dijsktra, Minimum spanning tree, etc. It allows you to draw your own graph.

Graph Visualizer Draw your own graphs and visualize the most common graph algorithms This web application allows you to draw a graph from zero, with p

Gonzalo Pereira 31 Jul 29, 2022
A lightweight graphic library providing 2d draw for Apache ECharts

ZRender A lightweight graphic library which provides 2d draw for Apache ECharts. Documentation https://ecomfe.github.io/zrender-doc/public/ License BS

Baidu EFE team 5.5k Dec 30, 2022
Easily compose images together without messing around with canvas

merge-images Easily compose images together without messing around with canvas Canvas can be kind of a pain to work with sometimes, especially if you

Luke Childs 1.5k Dec 30, 2022
Chart.js plugin to calculate and draw statistical linear, exponential, power, logarithmic, and polynomial regressions.

chartjs-plugin-regression Chart.js plugin to calculate and draw statistical linear, exponential, power, logarithmic, and polynomial regressions using

Wilfredo Pomier 14 Dec 18, 2022
An Attack Graphs Extension for Draw.io

Attack Graphs Plugin for draw.io Installation and User Guide Please find the detailed documentation here. Technical Documentation Overview of the Plug

INCYDE GmbH 9 Nov 21, 2022