A simple Game of Life implementation in Java
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
561 B

  1. import java.awt.Color;
  2. public class Render {
  3. public Render (int width, int height) {
  4. }
  5. public Render () {
  6. this(100,100);
  7. }
  8. /**
  9. * Render a color to a position
  10. *
  11. * This should draw to a buffer, which should be
  12. * rendered with render()
  13. *
  14. * @arg x The x coordinate
  15. * @arg y The y coordinate
  16. * @arg c The color to draw
  17. */
  18. public void draw (int x, int y, Color c) {
  19. }
  20. /**
  21. * Renders the stored buffer to the screen.
  22. */
  23. public void render () {
  24. }
  25. }