Mindustry-guide

Mindustry Logic guide in Chinese. Mindusry 中文逻辑指南

View the Project on GitHub LanluZ/Mindustry-guide

Draw


介绍

绘图语句,绘图使用

方法

method


clear

方法 描述 例子 结果 单独使用
clear 用一个颜色充满屏幕 clear clear

color

方法 描述 例子 结果 单独使用
color 为下一条语句设置颜色 color color

stroke

方法 描述 例子 结果 单独使用
stroke 为下一条划线语句设置线宽(单独使用无作用) stroke stroke

line

方法 描述 例子 结果 单独使用
line 画一根线xy为起始坐标 x2y2为终止坐标 line line

rect

方法 描述 例子 结果 单独使用
rect 矩形填充 rect rect

lineRect

方法 描述 例子 结果 单独使用
lineRect 矩形框架 rect rect

poly

方法 描述 例子 结果 单独使用
poly 正多边形填充 ploy ploy

linePoly

方法 描述 例子 结果 单独使用
linePoly 多边形框架 linePoly linePoly

triangle

方法 描述 例子 结果 单独使用
triangle 三角形填充 triangle triangle

image

方法 描述 例子 结果 单独使用
image 载入图片 image image

实例

游戏内部

    如上表

Mindustry

    draw clear 0 0 0 0 0 0
    draw color 255 255 255 255 0 0
    draw stroke 10 255 0 200 0 0
    draw linePoly 50 100 5 32 0 60
    drawflush display1

java 用stdDraw可以实现 但是我懒

    暂无

返回