AlloyTeam / Curvejs
Made curve a dancer in HTML5 canvas - 魔幻线条
Stars: ✭ 1,251
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Curvejs
Naughtybeziercurves
Bezier Curve Game Object for Unity
Stars: ✭ 195 (-84.41%)
Mutual labels: curve, bezier
Apple Pencil Safari Api Test
Canvas sketch board, force touch, real-time Bezier curve.
Stars: ✭ 189 (-84.89%)
Mutual labels: bezier, canvas
Micro Racing
🚗 🏎️ 🎮 online 3D multiplayer neural networks based racing game
Stars: ✭ 100 (-92.01%)
Mutual labels: bezier, canvas
Moto.js
A light motion library with curvilinear support.
Stars: ✭ 24 (-98.08%)
Mutual labels: curve, bezier
Beziermaker.js
arbitrary order bézier-curve generator
Stars: ✭ 277 (-77.86%)
Mutual labels: bezier, canvas
BezierKit
Bezier curves and paths in Swift for building vector applications
Stars: ✭ 190 (-84.81%)
Mutual labels: bezier, curve
Wechart
Create all the [ch]arts by cax or three.js - Cax 和 three.js 创造一切图[表]
Stars: ✭ 152 (-87.85%)
Mutual labels: bezier, canvas
react-svg-curve
React components to draw different types of curves with svg
Stars: ✭ 42 (-96.64%)
Mutual labels: bezier, curve
Nurbs Python
Object-oriented pure Python B-Spline and NURBS library
Stars: ✭ 295 (-76.42%)
Mutual labels: curve, bezier
Siriwave
The Apple® Siri wave-form replicated in a JS library.
Stars: ✭ 1,186 (-5.2%)
Mutual labels: canvas
Noble Bls12 381
Fastest implementation of BLS12-381 in a scripting language. High-security, auditable, 0-dependency aggregated signatures / zk-snarks over pairing-friendly curve
Stars: ✭ 73 (-94.16%)
Mutual labels: curve
Touchable
Flutter library to add gestures and animations to each Shape you draw on your canvas in your CustomPainter
Stars: ✭ 82 (-93.45%)
Mutual labels: canvas
Phaser Ce
Phaser CE is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
Stars: ✭ 1,186 (-5.2%)
Mutual labels: canvas
Bezierpath Length
A simple API to get the length of a CGPath, UIBezierPath or NSBezierPath, written in Swift.
Stars: ✭ 78 (-93.76%)
Mutual labels: bezier
Icon Machine
Web application for randomly generating pixel art icons.
Stars: ✭ 73 (-94.16%)
Mutual labels: canvas
Maker.js
📐⚙ 2D vector line drawing and shape modeling for CNC and laser cutters.
Stars: ✭ 1,185 (-5.28%)
Mutual labels: bezier
React Ape
🦍• [Work in Progress] React Renderer to build UI interfaces using canvas/WebGL
Stars: ✭ 1,183 (-5.44%)
Mutual labels: canvas
Made curve a dancer in HTML5 canvas.
中文README
Demos
- Loading
- Rope
- Siri-Wave
- Water
- Sprout
- Scale-To
- Points-To
- Rotate
- Word
- Perlin-Noise
- Simple
- Simple-ES5
- Lerp Color
- Curves
- Line
- Close
Usage
$ npm install curvejs
import curvejs from 'curvejs'
Or get it by the cdn and link curve.min.js
in your HTML:
<script src="https://unpkg.com/[email protected]/dist/curve.min.js"></script>
Then start to dance:
var Stage = curvejs.Stage,
Curve = curvejs.Curve,
canvas = document.getElementById('myCanvas'),
stage = new Stage(canvas),
rd = function() {
return -2 + Math.random() * 2
}
var curve = new Curve({
color: '#00FF00',
points: [277, 327, 230, 314, 236, 326, 257, 326],
data: [rd(), rd(), rd(), rd(), rd(), rd(), rd(), rd()],
motion: function motion(points, data) {
points.forEach(function (item, index) {
points[index] += data[index]
})
}
})
stage.add(curve)
function tick(){
stage.update()
requestAnimationFrame(tick)
}
tick()
Using built-in motion
var curve = new Curve({
points: [277, 327, 230, 314, 236, 326, 257, 326],
data: {angle: 0, r:5 ,step:Math.PI / 50 },
motion: curvejs.motion.dance
})
Submit your motion
In this motion directory, there are already some built-in motion. you can submit your motion and then create a pull request to the project.
Format and specification of your motion:
/**
* move motion.
*
* @param {points}
* @param {data}
* data rule example:
* [1, 0.2, -3, 0.7, 0.5, 0.3, -1, 1]
*/
export default function (points, data) {
points.forEach(function (item, index) {
points[index] += data[index]
})
}
QQ Group
The group id is 179181560. Welcome to join the group.
License
Copyright (c) 2017-present, dntzhang & AlloyTeam
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].