get help in general - we have more specialized help rooms here: https://gitter.im/FreeCodeCamp/home
// Gets a random point according to the screen size.
function onKeyDown(event) {
var maxPoint = new Point(view.size.width, view.size.height);
var randomPoint = Point.random();
var point = maxPoint * randomPoint;
console.log(point)
// Create a rectangle shaped path with its top left point at
var path = new Path.Rectangle({
point: [point.x, point.y],
size: [75, 75],
strokeColor: 'pink',
strokeWidth:7,
});
}
function onFrame(event) {
path.rotate(3)
}
snippet
tool?
const express = require('express');
const serveStatic = require('serve-static');
const path = require('path');
const app = express();
app.use(serveStatic(path.join(__dirname, 'dist')));
const port = process.env.PORT || 80;
app.listen(port);
express.static
?