A pixel art painter geared specifically at NES pixel art. Includes export for .chr binary file as well as palette and namespace data.
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.

18 lines
364B

  1. function initialize(DOC){
  2. console.log(DOC);
  3. var canvas = DOC.getElementByID("painter");
  4. if (!canvas){
  5. throw new Exception("DOM Missing painter canvas.");
  6. }
  7. var ctx = canvas.getContext("2d");
  8. if (!ctx){
  9. throw new Exception("Failed to obtain canvas context.");
  10. }
  11. }
  12. //console.log(document.getElementByID("painter"));
  13. //initialize(document);