Skip to content

Instantly share code, notes, and snippets.

View team172011's full-sized avatar
🎯
Focusing

Simon team172011

🎯
Focusing
View GitHub Profile
@team172011
team172011 / awtTojavaFxColor.java
Created January 5, 2018 10:29
java.awt.Color to javafx.scene.paint.Color
import java.awt.Color;
/**
* Returns a javaFX Color object that represents the same color as the awt color object
* @param c a java.awt.Color object
*/
private javafx.scene.paint.Color awtColorToJavaFX(Color c) {
return javafx.scene.paint.Color.rgb(c.getRed(), c.getGreen(), c.getBlue(), c.getAlpha() / 255.0);
}
@team172011
team172011 / modena.css
Created October 24, 2017 16:30 — forked from maxd/modena.css
modena.css from jdk1.8.0_91
/*
* Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*