New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hydra-synth

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hydra-synth - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

6

example/index.js

@@ -18,3 +18,3 @@ const Hydra = require('./../index.js')

var hydra = new Hydra({
autoLoad: false
})

@@ -28,7 +28,9 @@

var x = 0
loop(() => {
loop((dt) => {
x++
ctx.moveTo(x, 0);
ctx.lineTo(200, 100);
ctx.stroke();
hydra.tick(dt)
}).start()

@@ -35,0 +37,0 @@

{
"name": "hydra-synth",
"version": "1.0.3",
"version": "1.0.4",
"description": "base synth for hydra-editor",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -10,5 +10,7 @@ const Webcam = require('./webcam.js')

this.dynamic = true
this.width = opts.width
this.height = opts.height
this.tex = this.regl.texture({
// flipY: true
shape: [640, 480]
shape: [opts.width, opts.height]
})

@@ -29,4 +31,4 @@ this.pb = opts.pb

Webcam(index).then((response) => {
self.video = response.video
self.tex = self.regl.texture(self.video)
self.src = response.video
self.tex = self.regl.texture(self.src)
})

@@ -42,4 +44,4 @@ }

video.addEventListener('loadedmetadata', () => {
self.video = video
self.tex = self.regl.texture(self.video)
self.src = video
self.tex = self.regl.texture(self.src)
})

@@ -53,4 +55,4 @@ }

Screen().then(function (response) {
self.video = response.video
self.tex = self.regl.texture(self.video)
self.src = response.video
self.tex = self.regl.texture(self.src)
// console.log("received screen input")

@@ -63,3 +65,3 @@ })

this.tex = this.regl.texture({
shape: [640, 480]
shape: [this.width, this.height]
})

@@ -66,0 +68,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc