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.

Render.java 595 B

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