当前位置:网站首页>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;
}
边栏推荐
- Golang中的addressable
- 数据库文件中的未分配的块和未使用的块的区别
- [Swift]自定义点击APP图标弹出的快捷方式
- [shell basics] determine whether the directory is empty
- 自己的一些思考
- 【Exception】The field file exceeds its maximum permitted size of 1048576 bytes.
- SQL Interview Questions (Key Points)
- 【AUTOSAR-RTE】-4-Port和Interface以及Data Type
- 浅识Flutter 基本组件之CheckboxListTile组件
- [Godot][GDScript] 2D cave map randomly generated
猜你喜欢

A brief introduction to the CheckBox component of the basic components of Flutter

C语言从入门到如土——数据的存储

Use of QML

type_traits元编程库学习

The BP neural network

数据库实现分布式锁

Understanding and Using Unity2D Custom Scriptable Tiles (4) - Start to build a custom tile based on the Tile class (below)

How to develop a high-quality test case?

Redis实现分布式锁

安全20220712
随机推荐
Automation strategies for legacy systems
Can‘t load /home/Iot/.rnd into RNG
The use of beforeDestroy and destroyed
Problems that need to be solved in distributed system architecture
Redis 统计用户新增和留存
[Compilation principle] Design principle and implementation of recursive descent parsing
从滴滴罚款后数据治理思考
Based on the local, linking the world | Schneider Electric "Industrial SI Alliance" joins hands with partners to go to the future industry
Why don't you programmers make a living off your own projects?And have to work for someone else?
慧通编程第4关 - 魔法学院第6课
How Zotero removes auto-generated tags
【Exception】The field file exceeds its maximum permitted size of 1048576 bytes.
Unity2D 自定义Scriptable Tiles的理解与使用(四)——开始着手构建一个基于Tile类的自定义tile(下)
(线段树) 基础线段树常见问题总结
The application and practice of mid-to-platform brand advertising platform
els 方块向右移动边界判断、向下加速
安全20220722
自己的一些思考
Mysql 45 study notes (twenty-four) MYSQL master-slave consistency
【AUTOSAR-RTE】-4-Port和Interface以及Data Type