ascii_art
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
ascii_art [2023/03/25 15:40] – [Step 2. Load your image’s pixel data into a 2-dimensional array] frchris | ascii_art [2023/03/25 15:47] – [Step 3. Convert the RGB tuples of your pixels into single brightness numbers] frchris | ||
---|---|---|---|
Line 304: | Line 304: | ||
} | } | ||
+ | public int[][] getBrightness() | ||
+ | { | ||
+ | return brightness; | ||
+ | } | ||
public static void main(String[] args) { | public static void main(String[] args) { | ||
- | Step3 pic= new Step3(" | + | Step3 pic= new Step3(" |
- | JFrame window = new JFrame(" | + | JFrame window = new JFrame(" |
window.setSize(pic.getWidth(), | window.setSize(pic.getWidth(), | ||
window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); | window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); |
ascii_art.txt · Last modified: 2023/03/27 10:46 by frchris