Interesting Programming Guidance for Designer5--Program Process Control--Condition Statement (Part Two)
The final goal of this chapter is to complete a text venture game. So we have to know how to display texts and pictures in our program. The previous text outputs are all from the console. However, when we exported the program, we did not actually see the console. This requires us to think out of an idea to display texts in the window.
Simple Ways To Display Text
If you have no requirements towards font, then you can realize the display effect with only one command. Code Example (7-1):
[cceN_cpp theme="dawn"] void setup(){ size(400,400); } void draw(){ background(0); text("Font is here",50,50); text("字体在这???
Share this post
About the Author
Admin
How to Send Micro:bit Data to ThingSpeak IoT Platform
January 11, 2018
VC0706 Camera Module DIY Guide
December 18, 2014
nRF24L01 Module Demo for Arduino
May 6, 2011
Children’s Programming Education is the Future Trend
March 20, 2024
ELECFREAKS AI Smart Lens Now Compatible with Gigo Building Blocks!
February 21, 2024
ELECFREAKS Wins the Kids Judge Bett 2024 Award at the BETT Show
January 31, 2024
Topics
- Curriculum
- Course
- Micro bit supplier
- Wholesale Suppliers
- Micro bit tutorial
- Micro bit classroom pack
- Mcorbit Environment Monitoring
- Temperature-controlled
- Motor
- Fan
- TPBot car
- TPBot
- Micro:bit car
- AI Lens
- Micor:bit AI Lens
- Micro:bit LEDs
- BBC micro:bit
- Micro:bit Manipulator
- Wukong board
- Cutebot
- Micro:bit Motorcycle
- Nezha breakout
- Micro:bit DIY
- 360° servos
- AI Lens
- Retro Arcade
- Ecode
- PlanetX
- Microbit programming
- Your:bit
- Do your:bit
- IoT:bit
- Octopus
- Rainbow LED Ring
- Joystick:bit
- Wonder Building Kit
- Sensor:bit
- Downie
- Wenjie
- Laser Engraver Tutorial
Tags
Micro:bit
DIY
micro bit course
micro bit curriculum
micro bit supplier
micro:bit supplier
micro bit classroom pack
micro:bit classroom pack
micro bit tutorial
micro:bit tutorial
TPBot
micro:bit car
AI Lens
micro:bit AI Lens
microbit gyroscope
Micro:bit LEDs
BBC micro:bit
Micro:bit Manipulator
Wukong board
Cutebot
micro:bit Motorcycle
nezha breakout
micro:bit music
360° servos
AI Lens
Retro Arcade
ecode
PlanetX
sonar:bit
Microbit programming
your:bit
do your:bit
IoT:bit
Octopus
Rainbow LED Ring
Joystick:bit
Wonder Building Kit
Laser Engraver
Laser Engraving Machine
Wish List
Comments