Skip to content

Instantly share code, notes, and snippets.

View rostfirsikov's full-sized avatar

Rost Firsikov rostfirsikov

View GitHub Profile
@rostfirsikov
rostfirsikov / DrawShape.js
Last active October 21, 2019 07:30 — forked from vladocar/DrawShape.js
Draw Shape in Photoshop with JavaScript
/* Code by Mike Hale http://www.ps-scripts.com/bb/viewtopic.php?f=14&t=1802&start=15
with small modification by Vladimir Carrer and Rostyslav Firsikov
*/
if (app.documents.length > 0) {
function DrawShape() {
var doc = app.activeDocument;
var docCoef = doc.resolution / 72;
var y = arguments.length;