koringz / s3

Canvas 2D framework- https://koringz.github.io/s3/index

Home Page:https://koringz.github.io/s3/index

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

S3.js

S3.js 只是创建一个简单的应用程序与画布Canvas,它能实现简单的游戏动画效果,目前这个库只支持绘画circle的功能,后续更新中...

S3.js sample

Usage

const Body = s3.body(s3.dom('canvas'));
Body.component('circle', { type:'Array', property: [
  {color: '#AB5EEE', x: 100, y: 100, radius: 50}
]})

Draw multiple

S3.js multi Circle

const Body = s3.body(s3.dom('canvas'));
Body.component('circle', { type:'Array', property: [
  {color: '#AB5EEE', x: 100, y: 100, radius: 50},
  {color: '#5716D9', x: 250, y: 100, radius: 50},
  {color: '#701B73', x: 400, y: 100, radius: 50}
]})

Examples

View examples ~

About

Canvas 2D framework- https://koringz.github.io/s3/index

https://koringz.github.io/s3/index


Languages

Language:JavaScript 84.9%Language:HTML 12.1%Language:CSS 3.0%