rric

a_first_hello

Oct 9th, 2023 (edited)
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.11 KB | None | 0 0
  1. # "Hello World" for the Python mode of Processing 3 or 4
  2. # Copyright 2022, 2023 Roland Richter
  3.  
  4. # Create a quadratic canvas of size 600×600
  5. size(600, 600)
  6.  
  7. # Set the background to black: 0 means "as dark as possible"
  8. background(0)
  9.  
  10. # Set the text color to white: 255 means "as bright as possible"
  11. fill(255)
  12.    
  13. # Say hello to everyone at the center of the canvas
  14. text("Hello world!", 300, 300)
  15.  
  16.  
  17. # ----------------------------------------------------------------------
  18. # This program is free software: you can redistribute it and/or modify
  19. # it under the terms of the GNU General Public License as published by
  20. # the Free Software Foundation, either version 3 of the License, or
  21. # (at your option) any later version.
  22. #
  23. # This program is distributed in the hope that it will be useful,
  24. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  25. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  26. # GNU General Public License for more details.
  27. #
  28. # You should have received a copy of the GNU General Public License
  29. # along with this program.  If not, see <https://www.gnu.org/licenses/>.
  30.  
Advertisement
Add Comment
Please, Sign In to add comment