当前位置:网站首页>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;
}
边栏推荐
- BP神经网络
- (8) Math class, Arrays class, System class, Biglnteger and BigDecimal classes, date class
- How to develop a high-quality test case?
- 数据库文件中的未分配的块和未使用的块的区别
- 进程间通信
- errno错误码及含义(中文)
- Pytest e-commerce project combat (on)
- SQL Interview Questions (Key Points)
- A brief introduction to the CheckBox component of the basic components of Flutter
- 自己的一些思考
猜你喜欢

Recursive query single table - single table tree structure - (self-use)

type_traits metaprogramming library learning

Based on the local, linking the world | Schneider Electric "Industrial SI Alliance" joins hands with partners to go to the future industry

A brief introduction to the showDatePicker method of the basic components of Flutter

Unity2D 自定义Scriptable Tiles的理解与使用(四)——开始着手构建一个基于Tile类的自定义tile(下)

The distance value between two arrays of LeetCode simple questions

Mysql 45 study notes (23) How does MYSQL ensure that data is not lost

LeetCode simple problem to find the subsequence of length K with the largest sum

Daily practice of LeetCode - palindrome structure of OR36 linked list

C语言从入门到如土——数据的存储
随机推荐
Difference between unallocated blocks and unused blocks in database files
The distance value between two arrays of LeetCode simple questions
Daily practice of LeetCode - 138. Copy a linked list with random pointers
Detailed explanation of TCP (2)
Annotation usage meaning
立足本土,链接全球 | 施耐德电气“工业SI同盟”携手伙伴共赴未来工业
The use of beforeDestroy and destroyed
TCP和UDP详解
Just debuted "Fight to Fame", safety and comfort are not lost
Several common errors when using MP
Safety 20220712
IDEA常用快捷键与插件
数据库实现分布式锁
RESTful api interface design specification
IIR filter and FIR filter
ClickHouse:设置远程连接
How Zotero removes auto-generated tags
Understanding and Using Unity2D Custom Scriptable Tiles (4) - Start to build a custom tile based on the Tile class (below)
[C language] Preprocessing operation
(八)Math 类、Arrays 类、System类、Biglnteger 和 BigDecimal 类、日期类