A pixel art painter geared specifically at NES pixel art. Includes export for .chr binary file as well as palette and namespace data.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

18 lines
354B

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