JavaScript bot parses codeblocks marked as javascript and executes your code...
JavaScript is "simple" bot with one job. It parses codeblocks marked as js (JavaScript) and executes the code inside. You do need to use return statement like you would do in functions that return value back to caller.
Included modules:
Predefined functions:
...animation functions:
Predefined variables:
Invite bot to your server:
Images:
Animation example:
let center = new Point(canvas.width/2, canvas.height/2);
let circle = new Circle(center, 180);
let f = 30;
let points = circle.getPoints(10);
let d = points[0].distanceTo(points[1]);
let r = d/f;
ctx.fillStyle = '#ffb829';
function draw() {
points.forEach(point=>{
ctx.beginPath();
ctx.arc(point.X, point.Y, 20, 0, Math.PI*2);
ctx.fill();
point.rotate(center, -r);
});
}
prepare(30);
for (let i=0; i<f; i++) {
draw(); frame(); clear();
}
return animation();
1
2 مراجعتان
يمكن ترك المراجعات فقط من قِبل المستخدمين المسجلين. جميع المراجعات تخضع للمراجعة من قبل مشرفي Top.gg. يرجى التأكد من الاطلاع على إرشاداتنا قبل النشر.
5 نجوم
0
4 نجوم
0
3 نجوم
0
2 نجمتان
0
1 نجمة
2