当前位置:网站首页>Smartcom Programming Level 4 - Magic Academy Lesson 6
Smartcom Programming Level 4 - Magic Academy Lesson 6
2022-07-31 03:38:00 【Letter Competition for Middle School Students】
梳子
int main(){
p.size(8).c(6);
for (int i = 1; i <= 6; i ++) {
p.fd(40).rt(90);
p.fd(40).rt(90);
p.fd(40).rt(180);
}
return 0;
}
锯齿
int main(){
for (int i = 1; i <= 7; i ++) {
p.rt(30).fd(30);
p.rt(120).fd(30);
p.lt(150);
}
return 0;
}
The stairs type
int main(){
p.c(11);
for (int i = 1; i <= 5; i ++) {
for (int j = 1; j <= 6; j ++) {
p.fd(30).rt(90);
}
p.lt(180);
}
return 0;
}
楼梯
int main(){
for (int i = 1; i <= 10; i ++) {
p.fd(20).rt(90);
p.fd(20).lt(90);
}
return 0;
}
实心矩形
int main(){
p.rr(100,80,14);
return 0;
}
2Layer of solid rectangular
int main(){
p.rr(100,80,14);
p.rr(80,50,0);
return 0;
}
6针形
int main(){
for (int i = 1; i <= 6; i ++) {
p.fd(100).bk(100).rt(60);
}
return 0;
}
彩色15针形
int main(){
pen.hide();
for (int i = 0; i < 15; i ++) {
pen.c(i);
pen.fd(100).bk(100) ;
pen.rt(360.0 / 15) ;
}
return 0;
}
4色30针形
int n = 30;
pen.size(5).hide();
for (int i = 0; i < n; i ++) {
pen.c(i % 4);
pen.fd(100).bk(100) ;
pen.rt(360.0 / n) ;
}
Color ring
int main(){
int n = 10;
pen.size(8).hide();
for (int i = 0; i < n; i ++) {
pen.c(i);
pen.fd(50) ;
pen.rt(360.0 / n) ;
}
return 0;
}
边栏推荐
- Redis counts new and retained users
- [Swift]自定义点击APP图标弹出的快捷方式
- STM32 problem collection
- The els block moves the boundary to the right, and accelerates downward.
- $parent/$children and ref
- 安全20220712
- Atomic operation CAS
- 【HCIP】ISIS
- Unity2D 自定义Scriptable Tiles的理解与使用(四)——开始着手构建一个基于Tile类的自定义tile(下)
- The BP neural network
猜你喜欢
Database implements distributed locks
TCP和UDP详解
type_traits metaprogramming library learning
Knowledge Distillation 7: Detailed Explanation of Knowledge Distillation Code
C语言从入门到如土——数据的存储
Recursive query single table - single table tree structure - (self-use)
Mysql 45 study notes (23) How does MYSQL ensure that data is not lost
Why don't you programmers make a living off your own projects?And have to work for someone else?
Detailed explanation of TCP (1)
$attrs/$listeners
随机推荐
IDEA comment report red solution
(五)final、抽象类、接口、内部类
[shell basics] determine whether the directory is empty
type_traits元编程库学习
想从手工测试转岗自动化测试,需要学习哪些技能?
Good place to download jar packages
Redis uses sorted set to cache latest comments
(Line segment tree) Summary of common problems of basic line segment tree
SIP协议标准和实现机制
Can‘t load /home/Iot/.rnd into RNG
"DeepJIT: An End-To-End Deep Learning Framework for Just-In-Time Defect Prediction" paper notes
[C language] Three-pointed chess (classic solution + list diagram)
Use of QML
Understanding and Using Unity2D Custom Scriptable Tiles (4) - Start to build a custom tile based on the Tile class (below)
errno error code and meaning (Chinese)
Just debuted "Fight to Fame", safety and comfort are not lost
【AUTOSAR-RTE】-4-Port和Interface以及Data Type
从滴滴罚款后数据治理思考
C primer plus study notes - 8, structure
No qualifying bean of type 问题