02-Origami中文幫助-Basic-Layers

Dosen原創(chuàng)

這是我學(xué)習(xí)quartz composer喻杈,Origami絮重,看官方文檔翻譯下來(lái)的贷帮,每天一篇败去,有不準(zhǔn)確的地方希望能指出碘裕,一起交流進(jìn)步匆骗。轉(zhuǎn)載請(qǐng)與我聯(lián)系胶背,擅自轉(zhuǎn)載視作侵權(quán)杭措。


Layers????? 層


Layers show content, like images, in the viewer. They work like layers in Sketch and Photoshop: every layer has style attributes (e.g. position, size, an Image or Color to show...), can be different types (see list below), and can be layered on top of each other.

層是個(gè)容器辽社,像在查看器中的圖片伟墙,它們的作用像是在Sketch和Photoshop中的圖層一樣:每個(gè)圖層有一套屬性樣式(比如:位置,尺寸滴铅,一張位圖或是顏色)戳葵,可以是不同類(lèi)型,互相之間可以有層級(jí)汉匙。

Add a layer with the patch library ?“?? ? , or their keyboard shortcuts. Quickly add an image as a layer by dragging and dropping the image on to the Editor.

用模塊庫(kù) “ ? ? ” 添加一個(gè)層拱烁,或者通過(guò)快捷鍵。通過(guò)拖拽把圖片拖進(jìn)編輯器來(lái)快速添加一個(gè)圖片作為一個(gè)層噩翠。



1. Layer patches????? 層模塊


Layer →?“ L ”??????

Display a rectangle or image. For non-rectangle shapes, use patches like Circle Image or Rounded Rectangle that create an image to plug into a Layer.

顯示一個(gè)矩形或圖片戏自。對(duì)于非矩形形狀來(lái)說(shuō),使用像Circle Image(圓形圖片)或者Rounded Rectangle(圓角矩形)這樣的模塊來(lái)把一個(gè)圖片放入一個(gè)層中伤锚。

In most situations, you'll be working with an image from your designs by copy-pasting or drag-and-dropping into the editor. This will automatically create a layer patch for you with the image connected.

在大多數(shù)情況下擅笔,你會(huì)用 復(fù)制-粘貼 或者 拖拽-放入 的方式把你設(shè)計(jì)中的圖片放入編輯器,這樣會(huì)自動(dòng)地為你創(chuàng)建一個(gè)連接了圖片的層模塊屯援。

Text Layer →?“?? T ”

Display text with adjustable font settings.

顯示文字猛们,可調(diào)節(jié)字體設(shè)置。

Fill Layer →

Completely fill the containing Layer Group with a color.

用一個(gè)顏色填充滿(mǎn)Layer Group(層組)狞洋。



2. Layer position????? 層位置


Layers in Origami are positioned in the center by default. You can easily position the layer in different corners of the layer group by changing the Anchor Position. Be aware that some patches (like Scroll) expect Layers to have a center anchor position.

在Origami中弯淘,層默認(rèn)的位置在中心。用changing the Anchor Position(改變錨點(diǎn)位置)可以讓你很容易的把層放置在層組的不同的角落里吉懊。

X Position behaves like Sketch and Photoshop, where increasing it moves right, and decreasing moves left. Y Position is reversed: increasing it moves up, and decreasing moves down.

X坐標(biāo)就像Sketch和Photoshop中一樣庐橙,向右移動(dòng)它的值增加假勿,向左移動(dòng)值減少。Y坐標(biāo)是向上移動(dòng)值增加态鳖,向下移動(dòng)值減少转培。

Read more about the Coordinate System.

閱讀更多關(guān)于坐標(biāo)系統(tǒng)。



3. Layer order????? 層順序


Unlike the other attributes of a Layer, the order is specified with a dropdown at the top right of the Patch. You can also change the order by selecting the layer and hitting ?“?? [ or “?? ] ”?.

不同于層的其他屬性郁惜,在模塊的右上角通過(guò)下拉指定順序堡距。你也可以選住層,按 “ ? [ ”?或 “ ? ] ” 改變順序兆蕉。

To change the order of a Layer using patches, simply tweak the Z Position by a small amount (like 0.0001 pixels).

使用模塊改變一個(gè)層的順序羽戒,稍微調(diào)整Z坐標(biāo)一點(diǎn)點(diǎn)(比如0.0001像素)就可以了。



4. Layer Groups????? 層組


Layer Groups help you organize your Layers together. Create one from the patch library or simply hit “?G? ” (tip: you can do this while hovered over an image patch to quickly group it). You can double-click or ?“?? ▼? to get into a Layer Group, and click Edit Parent in the toolbar or “ ? ▲ ”??to exit a Layer Group.

層組幫你組織你的層在一起虎韵。從模塊庫(kù)創(chuàng)建一個(gè)或者按 “ G? ” (提示:你可以在懸停在一個(gè)圖片模塊上的時(shí)候易稠,按 “ G? ”,把它組在一起)包蓝,你可以雙擊或者用 “ ? ▼ ” 來(lái)成組驶社,點(diǎn)擊工具欄的Edit Parent(編輯父物體) 或者 “ ? ▲ ” 來(lái)退出層組。

Make sure to group layers whenever you want to animate multiple layers together. For example, if you're sliding up a window with multiple layers inside of it, putting those layers in a layer group will let you just animate up that one group up instead of needing to have cables connected to several different layers.

確保任何時(shí)候你想要?jiǎng)悠饋?lái)層都在一個(gè)層組测萎。舉個(gè)例子亡电,如果你想上滑一個(gè)里面有很多層的窗口,把這些層放在一個(gè)層組硅瞧,會(huì)讓你只需要?jiǎng)右粋€(gè)層組就能可以份乒,而不需要給許多不同的層連線(xiàn)。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末腕唧,一起剝皮案震驚了整個(gè)濱河市或辖,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌枣接,老刑警劉巖颂暇,帶你破解...
    沈念sama閱讀 211,194評(píng)論 6 490
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場(chǎng)離奇詭異但惶,居然都是意外死亡耳鸯,警方通過(guò)查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 90,058評(píng)論 2 385
  • 文/潘曉璐 我一進(jìn)店門(mén)榆骚,熙熙樓的掌柜王于貴愁眉苦臉地迎上來(lái)片拍,“玉大人,你說(shuō)我怎么就攤上這事妓肢。” “怎么了苫纤?”我有些...
    開(kāi)封第一講書(shū)人閱讀 156,780評(píng)論 0 346
  • 文/不壞的土叔 我叫張陵碉钠,是天一觀的道長(zhǎng)纲缓。 經(jīng)常有香客問(wèn)我,道長(zhǎng)喊废,這世上最難降的妖魔是什么祝高? 我笑而不...
    開(kāi)封第一講書(shū)人閱讀 56,388評(píng)論 1 283
  • 正文 為了忘掉前任,我火速辦了婚禮污筷,結(jié)果婚禮上工闺,老公的妹妹穿的比我還像新娘。我一直安慰自己瓣蛀,他們只是感情好陆蟆,可當(dāng)我...
    茶點(diǎn)故事閱讀 65,430評(píng)論 5 384
  • 文/花漫 我一把揭開(kāi)白布。 她就那樣靜靜地躺著惋增,像睡著了一般叠殷。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上诈皿,一...
    開(kāi)封第一講書(shū)人閱讀 49,764評(píng)論 1 290
  • 那天林束,我揣著相機(jī)與錄音,去河邊找鬼稽亏。 笑死壶冒,一個(gè)胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的截歉。 我是一名探鬼主播胖腾,決...
    沈念sama閱讀 38,907評(píng)論 3 406
  • 文/蒼蘭香墨 我猛地睜開(kāi)眼,長(zhǎng)吁一口氣:“原來(lái)是場(chǎng)噩夢(mèng)啊……” “哼怎披!你這毒婦竟也來(lái)了胸嘁?” 一聲冷哼從身側(cè)響起,我...
    開(kāi)封第一講書(shū)人閱讀 37,679評(píng)論 0 266
  • 序言:老撾萬(wàn)榮一對(duì)情侶失蹤凉逛,失蹤者是張志新(化名)和其女友劉穎性宏,沒(méi)想到半個(gè)月后,有當(dāng)?shù)厝嗽跇?shù)林里發(fā)現(xiàn)了一具尸體状飞,經(jīng)...
    沈念sama閱讀 44,122評(píng)論 1 303
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡毫胜,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 36,459評(píng)論 2 325
  • 正文 我和宋清朗相戀三年,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了诬辈。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片酵使。...
    茶點(diǎn)故事閱讀 38,605評(píng)論 1 340
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡,死狀恐怖焙糟,靈堂內(nèi)的尸體忽然破棺而出口渔,到底是詐尸還是另有隱情,我是刑警寧澤穿撮,帶...
    沈念sama閱讀 34,270評(píng)論 4 329
  • 正文 年R本政府宣布缺脉,位于F島的核電站痪欲,受9級(jí)特大地震影響,放射性物質(zhì)發(fā)生泄漏攻礼。R本人自食惡果不足惜业踢,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 39,867評(píng)論 3 312
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望礁扮。 院中可真熱鬧知举,春花似錦、人聲如沸太伊。這莊子的主人今日做“春日...
    開(kāi)封第一講書(shū)人閱讀 30,734評(píng)論 0 21
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)倦畅。三九已至遮糖,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間叠赐,已是汗流浹背欲账。 一陣腳步聲響...
    開(kāi)封第一講書(shū)人閱讀 31,961評(píng)論 1 265
  • 我被黑心中介騙來(lái)泰國(guó)打工, 沒(méi)想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留芭概,地道東北人赛不。 一個(gè)月前我還...
    沈念sama閱讀 46,297評(píng)論 2 360
  • 正文 我出身青樓,卻偏偏與公主長(zhǎng)得像罢洲,于是被迫代替她去往敵國(guó)和親踢故。 傳聞我的和親對(duì)象是個(gè)殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 43,472評(píng)論 2 348

推薦閱讀更多精彩內(nèi)容

  • 返滬第一天惹苗,想家殿较,想回家。更想姐姐桩蓉,她身上有很多正能量淋纲,讓人感到有力量和希望。 從現(xiàn)在開(kāi)始過(guò)好每天院究。定目標(biāo)洽瞬,做計(jì)劃...
    青衣雨翼_shape閱讀 126評(píng)論 0 0
  • 作業(yè)本一:思維空性 行腳的空性:我覺(jué)得行腳可以鍛煉毅力,有的人覺(jué)得行腳太累业汰,都是對(duì)的伙窃,當(dāng)有觀察者的時(shí)候,它可以有無(wú)...
    妙蓮修行閱讀 240評(píng)論 0 0
  • 每次逛貼吧的時(shí)候样漆,我都會(huì)被迷妹們的熱情給嚇到为障。有每天打卡簽到的,有公開(kāi)表白“我愛(ài)你的”,更有甚者以愛(ài)豆為主角寫(xiě)小說(shuō)...
    收藏回憶的宇航員閱讀 295評(píng)論 2 2