Coder Social home page Coder Social logo

Comments (4)

HanSolo avatar HanSolo commented on July 30, 2024

Yep it's free to use...enjoy

from steelseries-canvas.

MaxESP avatar MaxESP commented on July 30, 2024

Thank you very much HanSolo I appreciate

from steelseries-canvas.

MaxESP avatar MaxESP commented on July 30, 2024

hello sir ,

Thanks again for your canvas i have a question about speed up your canvas lib . i explain i have set horizon by serial i working but i want the canvas to be faster to respond better to the data coming

parser.on('data', function(data) {

 var newValue = data;
 
  var str = newValue;

var fields = str.split(/:/);
var rolls = fields[0];
var pitchs = fields[1];
// var temps = fields[2];
// var boussoles = fields[3];

 roll     = parseInt(rolls);
 pitch    = parseInt(pitchs);
 // temp     = parseInt(temps);
 // boussole = parseInt(boussoles);



io.emit('roll', roll);
io.emit('pitch', pitch);
// io.emit('temp', temp);
// io.emit('boussole', boussole);

});
server.listen(3000); // Listen

from steelseries-canvas.

mcrossley avatar mcrossley commented on July 30, 2024

The Horizon gauge has a fixed animation duration of 1 second.
At present you would have to manually change the steelseries.js file to alter this.

For roll it is at line 8658...
tweenRoll = new Tween({}, '', Tween.regularEaseInOut, roll, newRoll, 1);

Change the "1" (second) to whatever you want, same for the pitch at line 8717...
tweenPitch = new Tween({}, '', Tween.regularEaseInOut, pitch, newPitch, 1);

from steelseries-canvas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.