Oracle graphics: How to change Paint settings? : Nearly a month ago I was testing JavaFX graphics API, however I was worried about performance. The performance problem is that I had to pass a `Paint` object for colorizing shapes. 

---

### Issue: it's impossible to change settings of an existing `Paint`

I just need to update a `Paint`, for example, `Color`, but there are no methods like `Color#setRed`, `Color#setGreen`, `Color#setBlue` and `Color#setOpacity`. There are no fields, too ([javafx.scene.paint.Color][1]).

---

### Performance

The unique way I can try to change settings of a `Paint` is to construct another `Paint` instead, however this will involve on running the garbage collector. Is that correct?

I think it's possible to optimize these objects automatically depending on how they're entirely used. But Idk. if the Oracle's compiler optimizes them.

---

So is it a good solution to re-construct a `Paint`? Do you guys also know of JavaFX alternatives that handle what I want?

  [1]: https://docs.oracle.com/javafx/2/api/javafx/scene/paint/Color.html