nest-rs / nest

A simple rust 2D graphics library inspired by LOVE2D and https://github.com/alexandercampbell/simple
MIT License
6 stars 3 forks source link

Added CRect for colored rectangles #8

Closed twh2898 closed 7 years ago

vadixidav commented 7 years ago

We need to add a color() method to Shape first, and then define color rect in terms of that. Use translate as a basis to copy from.