应用网格材料
-
预备知识
介绍
网格材料让物体拥有一个干净以及有未来感的外观。它通常被用来创建平地。
要在任何物体上使用网格材料,你可以使用下列编程积木:
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/583cfaef-98e1-449c-bd9b-cd7941fee2f9.png" width="900" style="filter: drop-shadow(0.35rem 0.35rem 0.4rem rgba(0, 0, 0, 0.5));">
表面颜色和线条颜色
你可以使用编程积木中的首两个颜色选择输入框来设置表面和线条的颜色。需要注意的是,表面颜色的透明度数值会被忽略,但你可以设置线条颜色的透明度。而当线条完全透明时,表面颜色的透明度会被固定在92%。
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/7d22d6f5-972f-46ae-8231-147c38c9a99e.gif" width="925" style="">
线条密度
你可以利用密度数值来控制线条之间的间距。当数值为1,代表着每100个单位一条线。更高的密度数值会减少线条间距,因此产生更多的线;更低的密度数值会产生更少的线。
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/8fae09d1-c06c-40c5-bad8-690b893e9766.gif" width="925" style="">
次要线条可见性
网格材料中会有两种不同的线条:主要线条和次要线条。”次要线条可见性“输入控制了在主要线条的对比下,次要线条的透明度。默认情况下,次要线条的厚度是主要线条的33%。如果你把这个数值设置成100%,那么次要线条看起来就会和主要线条一样。
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/967dff2c-5dbc-40a8-9645-bf4367a3b671.gif" width="925" style="">
X/Y/Z 位移(绝对数值)
你可以利用X/Y/Z中的每个方向的绝对数值来移动线条的位置。就像在这个例子展示的一样,假设我们要主要线条出现在盒子的边缘,我们需要把线条移动到边缘长度的一半,也就是500。
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/2df996a1-0005-4289-9f98-02e85fba8f4a.gif" width="1000" style="">
-
I CreatiCode pinned this topic on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login