]> gerrit.simantics Code Review - simantics/district.git/blob - ColorGradient.java
8ce10887c3f8eb9f1c6eee4f08bc352bd69deeac
[simantics/district.git] / ColorGradient.java
1 package org.simantics.district.network.profile;
2
3 import java.awt.Color;
4
5 /**
6  * @author Tuukka Lehtonen
7  */
8 @FunctionalInterface
9 public interface ColorGradient {
10
11     /**
12      * Applies this function to the given argument.
13      *
14      * @param t the function argument
15      * @return the function result
16      */
17     Color get(double t);
18
19 }