CodeHS supports graphics programs in Java and Python. You can write and run code that displays graphics directly from your browser — it even works on a Chromebook!
Explore the tutorials below for some example graphics programs.
Java Graphics
Check out our Java Swing tutorials here!
JavaFX
CodeHS supports JavaFX too! To create a JavaFX program:
Create a Java Swing program in the Sandbox
Click More > About at the top right
Select JavaFX 21.0.5 from the version drop-down menu
Check out a demo JavaFX Sandbox program here!
Python
Check out our Python graphics playlist here!
If you want to add Python graphics to a website, you can check out our tutorial here!
We also have assignment starter kits for more of the College Board AP CSA Labs like PictureLab, Elevens, MagPie, and GridWorld in addition to other materials for writing graphics-based programs with libraries like Swing for Java or Pygame for Python.
Still have questions? Contact our team at hello@codehs.com to learn more!