当前位置:网站首页>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;
}
边栏推荐
- TCP和UDP详解
- els 方块向右移
- CloudCompare & PCL calculate the degree of overlap between two point clouds
- C primer plus study notes - 8, structure
- Select the smoke test case, and make the first pass for the product package entering QA
- 7年经验,功能测试工程师该如何一步步提升自己的能力呢?
- The els block moves the boundary to the right, and accelerates downward.
- What is a system?
- Day32 LeetCode
- BP神经网络
猜你喜欢
Understanding and Using Unity2D Custom Scriptable Tiles (4) - Start to build a custom tile based on the Tile class (below)
Use of QML
A brief introduction to the CheckBox component of the basic components of Flutter
Unity2D 自定义Scriptable Tiles的理解与使用(四)——开始着手构建一个基于Tile类的自定义tile(下)
从滴滴罚款后数据治理思考
Database implements distributed locks
LocalDate addition and subtraction operations and comparison size
Redis implements distributed locks
Several common errors when using MP
立足本土,链接全球 | 施耐德电气“工业SI同盟”携手伙伴共赴未来工业
随机推荐
Knowledge Distillation 7: Detailed Explanation of Knowledge Distillation Code
Detailed explanation of TCP (1)
Why SocialFi achievement Web3 decentralized social in the future
Ambiguous method call.both
RESTful api接口设计规范
Golang中的addressable
浅识Flutter 基本组件之CheckBox组件
(4) Recursion, variable parameters, access modifiers, understanding main method, code block
A brief introduction to the CheckBox component of the basic components of Flutter
端口排查步骤-7680端口分析-Dosvc服务
Analysis summary - self-use
Difference between unallocated blocks and unused blocks in database files
(六)枚举、注解
STM32 problem collection
[Dynamic programming] Maximum sum of consecutive subarrays
Pytest电商项目实战(上)
$attrs/$listeners
Detailed explanation of TCP (3)
Implementation of a sequence table
els 方块向右移