Skip to content

Instantly share code, notes, and snippets.

View Winner95's full-sized avatar
👋

Ivan Winner95

👋
  • London, UK
View GitHub Profile
@Winner95
Winner95 / README.md
Created October 25, 2020 09:39
Useful links for development
@Winner95
Winner95 / Get_Centroid_coordinates.jsx
Last active December 15, 2022 11:44
JS-script for Adobe Photoshop 2017, that finds centroid of svg figures
/*
Get_Centroid_coordinates.jsx
A Javascript for Adobe Photoshop 2017.
Purpose: Find the centroid (center of gravity) of SVG path and point by guidelines.
Based on formula for finding Centroid of non-self-intersecting closed polygon
To Use: Select layer which includes normal path. Call the script.
Author: Ivan Grekov
*/
// reset unites for proper navigation & sizes