Created
April 3, 2016 14:50
-
-
Save isokissa/89f1903bea028e50f9f59513aaebefde to your computer and use it in GitHub Desktop.
Isokissa logo as SVG path in JavaFX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javafx.scene.paint.Color; | |
import javafx.scene.shape.SVGPath; | |
/** | |
* @author isokissa | |
*/ | |
public class IsokissaLogo extends SVGPath { | |
public IsokissaLogo(){ | |
this.setContent("m37.7,0,8.53,57.9c-2,5.7-3.1,11.7-3.1,18,0,0.78,0.0295," + | |
"1.57,0.0625,2.34l-38.9-9.88-2.66,10.4,43.3,11c0.184,0.686," + | |
"0.353,1.39,0.562,2.06h-45.5v10.8h50.2c0.122,0.212,0.25,0.415," + | |
"0.375,0.625l-49,12.4,2.66,10.4,53.3-13.6c9.79,10.5,23.7,17," + | |
"39.2,17s29.4-6.54,39.2-17l53.4,13.6,3-10-49-13c0.118-0.199," + | |
"0.228-0.393,0.344-0.594h50.3v-10.8h-45.6c0.207-0.665,0.381-1.36," + | |
"0.562-2.03l44-10.4-2.66-10.4-39,9.91c0.0339-0.782,0.0937-1.58,"+ | |
"0.0937-2.38,0-6.3-1.13-12.3-3.12-17.9l9-58-44," + | |
"24.4c-4.76-1.38-9.77-2.12-15-2.12-5.18,0-10.2," + | |
"0.753-14.9,2.12l-44.4-24.4z"); | |
this.setFill(Color.RED); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment