
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Randomly delaunay-triangulates an image by distributing 2D points across the surface, and then triangulating it. The colours of each triangle is determined by the pixel color underneath the triangle's centroid.
A new canvas is returned with the same size as the image.
var load = require('img')
var domready = require('domready')
var uri = require('baboon-image-uri')
var delaunify = require('delaunify')
domready(function() {
//load image with baboon for testing
load(uri, function(err, img) {
if (err)
throw err
//delaunify the image into a canvas
var result = delaunify(img, { count: 350 })
document.body.appendChild(result)
})
})
delaunify(img[, opts])
Triangulates the image. By default, it uses a random distribution of points.
Options:
min
an [x,y] array for the minimum random value (default [0, 0]
)max
an [x,y] array for the maximum random value (default [imgWidth, imgHeight]
)count
the number of points to distribute (default 50
)fill
a boolean, whether to apply a fill (default true
)stroke
a boolean, whether to apply a stroke (default true
)points
an array of [x,y] points to use instead of random; this will ignore the min
, max
and count
optionsMIT, see LICENSE.md for details.
FAQs
randomly delaunay-triangulates an image
We found that delaunify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.