use of net.sf.latexdraw.models.interfaces.shape.Color in project latexdraw by arnobl.
the class TestDviPsColors method testGetUserColorsCode.
@SuppressWarnings("all")
@Test
public void testGetUserColorsCode() {
Color c = ShapeFactory.INST.createColor(230d / 255d, 65d / 255d, 78d / 255d, 1d);
Optional<String> nameColour = DviPsColors.INSTANCE.addUserColour(c);
assertNotNull(DviPsColors.INSTANCE.getUsercolourCode(null));
assertNotNull(DviPsColors.INSTANCE.getUsercolourCode(nameColour.get()));
}
Aggregations