ai中導入sketch_在Sketch中營造深度感

ai中導入sketch

Creating a user interface with depth can seem daunting at first, but it only requires you to understand one fundamental rule — emulating a light source.

首先,創建具有深度的用戶界面似乎很艱巨,但這僅要求您了解一個基本規則- 模擬光源

模擬光源 (Emulating a light source)

When emulating a light source, it’s important to keep in mind that, most likely, the light will come from above.

模擬光源時,請務必記住,很可能光線來自上方

Take for example the door below:

以下面的門為例:

A picture of a door to showcase how the lighting makes the panels appear raised and inset.
Photo by Erik Mclean on Unsplash
Erik Mclean在Unsplash上拍攝的照片

Although you’re observing a flat raster, it’s still evident that the panels on the door are raised.

盡管您觀察到的是平坦的柵格,但仍然很明顯門上的面板是抬起的。

You’ll notice that each horizontal panel’s top edge is lighter while the bottom edge is darker. This is because the door is angled toward the light source. As a result, the top edge receives more light since it’s angled toward the source while the bottom edge receives less light since it’s angled away from the source.

您會注意到,每個水平面板的頂部邊緣較亮,而底部邊緣則較暗。 這是因為門朝向光源傾斜。 結果,由于頂部邊緣朝向光源傾斜,因此頂部邊緣接收的光線更多 ,而由于遠離光源傾斜底部邊緣接收的光線較少

Visually demonstrating how a raised panel’s top edge is lighter while the bottom edge is darker.

The only way that the panel’s edges could be oriented as such is if the panel were itself raised, which is exactly how our brains tend to perceive it.

可以這樣定向面板邊緣的唯一方法是,如果面板本身被抬起,這正是我們的大腦傾向于感知的方式。

Let’s take a look at another example:

讓我們看另一個例子:

A picture of a door to showcase how the lighting makes the panels appear raised and inset.
Photo by Diego González on Unsplash
DiegoGonzález在Unsplash上拍攝的照片

In this example, it’s evident that the four panels are inset.

在此示例中,很明顯四個面板是inset

You’ll notice that there’s a shadow at the top edge, indicating that the top lip is obstructing the path of light. The bottom edge, on the other hand, is lighter since it’s angled toward the light source.

您會注意到頂部邊緣有陰影,表明上嘴唇遮擋了光路。 另一方面,底邊緣較輕,因為它與光源成一定角度。

Visually demonstrating how an inset panel’s top edge is darker while the bottom edge is lighter.

If you want to add a similar sense of depth to your designs, you simply need to mimic the way light behaves in real-world scenarios.

如果要在設計中增加類似的深度感,則只需要模擬現實世界中燈光的行為方式即可。

在Sketch中模擬光 (Simulating light in Sketch)

As you saw above, there could be two possible profiles i.e. raised and inset.

如您在上面所看到的,可能有兩種可能的輪廓,養護插入

When you’re trying to replicate this behavior, you first need to decide the desired profile of the target element. You can then easily mimic how light would interact with the element.

當您嘗試復制此行為時,首先需要確定目標元素的所需配置文件。 然后,您可以輕松模擬光與元素的交互方式。

內嵌元素 (Inset elements)

Say that you want to design a component that feels like it’s depressed into the page.

假設您要設計一個感覺像被壓入頁面的組件。

Your desired profile would then look something like this:

您所需的個人資料將如下所示:

An inset profile.

Pretend that a light source exists and is slightly above the inset profile.

假設光源存在并且稍微高于插圖輪廓。

An inset profile along with the light source being present slightly above the object.

When you look slightly downward, you would only see the bottom lip. Since the bottom lip is facing toward the light source, we can give it a lighter color via a bottom border or inset shadow along with a negative vertical offset.

當您稍微向下看時,您只會看到下唇。 由于底唇朝向光源,因此我們可以通過底邊框或嵌入陰影以及負的垂直偏移為其賦予較淺的顏色。

Visually demonstrating how to add depth to the bottom lip.

When you look slightly downward, you barely see the top lip since it would block some of the light. Since the top lip is facing away from the light source, we can give it a darker color via a bottom border or inset shadow along with a positive vertical offset.

當您稍微向下看時,您幾乎看不到上唇,因為它會阻擋一些光線。 由于上唇背對光源,我們可以通過底部邊框或嵌入陰影以及正的垂直偏移為它提供較暗的顏色。

Adding the positive vertical offset as opposed to a negative offset will ensure that the shadow doesn’t poke through at the bottom.

加上正的垂直偏移而不是負的偏移,可以確保陰影不會從底部刺入。

Visually demonstrating how to add depth to the top lip.

You can now apply this technique for whatever you like such as a checkbox or text inputs.

現在,您可以將這種技術應用于所需的任何內容,例如復選框或文本輸入。

It’s often tempting to see how close you can mimic real-world scenarios, however, don’t get too carried away. Although this is a fun exercise, going overboard almost always leads to interfaces that are busy and/or unclear.

人們常常很想知道您可以模擬現實世界中的場景有多近,但是不要太著迷。 盡管這是一個有趣的練習,但是過度使用總是會導致界面繁忙和/或不清楚。

凸起元素 (Raised elements)

Now, say that you want to design a call-to-action that feels like it’s raised off of the page.

現在,假設您要設計一個從頁面上跳出來的號召性用語。

Your desired profile would then look something like this:

您所需的個人資料將如下所示:

A raised profile.

Similar to how light behaves, users typically look slightly downward when interacting with their screens.

與光的行為類似,用戶在與屏幕進行交互時通常會略微向下看。

An inset profile along with the user’s eyes being present slightly above the object.

To achieve the most natural result, you should expose a little bit of the top edge and conceal the bottom edge.

為了獲得最自然的效果,您應該露出一點頂部邊緣并隱藏底部邊緣。

Since the top edge is facing toward the light source, we can give it a lighter color than the face of the button via a top border or an inset shadow along with a negative vertical offset.

由于頂部邊緣朝向光源,因此我們可以通過頂部邊框或嵌入陰影以及負的垂直偏移為按鈕提供比按鈕表面更淺的顏色。

I’ve simply picked white as the lighter color for demonstration purposes, but this won’t give you the best results. You’d want to pick the lighter color by hand as opposed to using a semi-transparent white color.

我只是選擇白色作為較淺的顏色用于演示,但這不會給您最好的效果。 您需要手動選擇較淺的顏色,而不是使用半透明的白色。

Visually demonstrating how to add depth to the top edge.

When you look downward, you’ll notice that a raised element will block some light from reaching the bottom edge. To account for this, we can simply add a slightly dark drop shadow with a positive vertical offset.

當您向下看時,您會注意到凸起的元素將阻止某些光線到達底部邊緣。 為了解決這個問題,我們可以簡單地添加一個帶有正垂直偏移量的 暗陰影陰影

Do keep in mind that we only want the shadow to appear below the element, hence the positive vertical offset described above.

請記住,我們只希望陰影出現在元素下方,因此希望上面描述的是垂直的正偏移量。

Visually demonstrating how to add depth to the bottom edge.

I would suggest not to get too carried away with the blur radius. A couple of pixels is usually good enough since these kinds of shadows have rather fine edges. Take for example a shadow cast by the bottom of a plate, etc.

我建議不要太迷離模糊半徑。 通常,幾個像素就足夠了,因為這些陰影的邊緣相當精細。 例如,從板的底部投射出陰影,等等。

A cup of tea or coffee and a stack of letters on a desk.
Photo by Diane Helentjaris on Unsplash
Diane Helentjaris在Unsplash上拍攝的照片

通過陰影傳送高程 (Conveying elevation via shadows)

When you utilize shadows thoughtfully, you can make it seem that your elements are positioned on the imaginary z-axis, adding elevation to the screen.

當深思熟慮地利用陰影時,可以使您的元素看起來位于虛構的z軸上,從而在屏幕上增加了標高。

Visually demonstrating how shadows can add elevation to the interface by positioning elements on an imaginary z-axis.

For instance, smaller shadows that have a tiny blur radius will make the element appear as if it were only slightly raised. Larger shadows with a higher blur radius will make it seem that the element is closer to the user, and further from the screen.

例如,模糊半徑很小的較小陰影將使該元素看起來好像只是稍微升高一樣。 具有較大模糊半徑的較大陰影將使該元素看起來更靠近用戶,并且距離屏幕更遠。

Visually demonstrating how adding a shadow makes an object appear closer to the user and away from the interface.

The reason I mention this is that the closer a call-to-action is to a user, the more likely they are to perform the intended action.

我之所以這樣說,是因為號召性用語離用戶越近,他們越有可能執行預期的操作。

陰影可以有多個部分 (Shadows can have multiple parts)

Have you ever observed a gorgeous shadow effect on a website and were unable to recreate it with a single shadow?

您是否曾經在網站上看到過華麗的陰影效果,卻無法用單個陰影重新創建它?

Well, you might not have noticed that these sites were probably using multiple shadows instead of the one.

好吧,您可能沒有注意到這些站點可能使用多個陰影而不是一個陰影。

Take for instance the UI below:

例如下面的UI:

Music Player UI by Peter Miller on Dribbble
Photo by Peter Miller on Dribbble
彼得·米勒 ( Peter Miller)在Dribbble上的照片

At first glance, this doesn’t make a lot of sense. When you see designers combining shadows, they’re not just randomly experimenting with different effects. For these meticulous artists, each shadow serves a particular purpose.

乍一看,這沒有什么意義。 當您看到設計師結合陰影時,他們不僅僅是在隨機嘗試不同的效果。 對于這些細心的藝術家,每個陰影都有特定的用途。

The first shadow in the image above is a larger and softer one, having a sizable blur radius and vertical offset. The purpose of this shadow is to emulate the shadow cast behind it via a direct light source.

上圖中的第一個陰影較大且較柔和,具有相當大的模糊半徑和垂直偏移。 該陰影的目的是模擬通過直接光源投射在其后面的陰影。

Visually demonstrating how to emulate a shadow cast behind an object via a direct light source.

The second shadow is a tighter and darker one, having a smaller blur radius and vertical offset. The purpose of this shadow is to emulate the shadowed area underneath the object where ambient light cannot reach easily.

第二個陰影較緊且較暗,模糊半徑和垂直偏移較小。 該陰影的目的是模擬物體下面的陰影區域,其中環境光不易到達。

Here, the designer (Peter Miller) has presumed that he wants to mimic a tangible light source. To cast a shadow, some of the light would bounce around behind it and most likely transfer a blue glow onto the surface behind it (assuming that the object is blue on both sides).

在這里,設計師(Peter Miller)假定他想模仿有形光源。 要投射陰影,一些光線會在其后面反彈,并且很可能在其后面的表面上傳遞藍色光(假設對象的兩面都是藍色)。

Assuming then that the object is blue on both sides, the shadow should probably have a little blue to it as the light bounces around on the backside of it.

假設物體的兩面都是藍色,則陰影可能應該在它的背面反射光的同時帶有一點藍色。

Visually demonstrating how to emulate a shadow cast behind an object via an ambient light source.
Visually demonstrating how to emulate a shadow cast behind an object in Sketch via an ambient light source.

As you can see, with multiple shadows, you get a lot more control than with a single shadow.

如您所見,具有多個陰影比具有單個陰影具有更多的控制權。

There are a ton of other ways to account for elevation that this article hasn’t covered. What we’ve covered today should provide a good starting point. My goal was to keep this as concise as possible without sacrificing the nuances that get lost in translation.

本文還沒有介紹許多其他方法來說明海拔高度。 我們今天討論的內容應該提供一個很好的起點。 我的目標是盡可能保持簡潔,而又不犧牲翻譯中丟失的細微差別。

A few more ways that you can add depth to your interface is by establishing an elevation system, combining shadows with the interaction, utilizing shades of the same color, and/or using solid shadows. I would recommend incorporating the components I have mentioned above to create more granular and lifelike experiences.

您可以通過以下幾種方法來增加界面的深度:建立高程系統,將陰影與交互結合,使用相同顏色的陰影和/或使用純陰影。 我建議合并上面提到的組件,以創建更細致逼真的體驗。

I’m excited to see how you add depth to your designs in Sketch! As always, thanks for reading.

我很高興看到您如何在Sketch中增加設計的深度! 與往常一樣,感謝您的閱讀。

翻譯自: https://uxdesign.cc/creating-a-sense-of-depth-in-sketch-d43bec6b65b

ai中導入sketch

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/275720.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/275720.shtml
英文地址,請注明出處:http://en.pswp.cn/news/275720.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

java byte轉bigdecimal_Java BigDecimal byteValueExact()用法及代碼示例

java.math.BigDecimal.byteValueExact()是一個內置函數,它將BigDecimal轉換為字節并檢查丟失的信息。任何大于127或小于-128的BigDecimal值都將生成異常,因為它不適合字節范圍。用法:public byte byteValueExact()參數:該方法不接受任何參數。…

Python3+PyCharm+selenium3 環境搭建

安裝Python3請去python官網下載安裝包,我用的是Python3.6安裝PyCharm,這個也是去官網自己下吧,偶的是2018.2.3(CommunityEdition)接下來安裝seleniumPyCharm中Tremianl安裝完成后,在python Console中輸入沒…

2021 年最值得了解的 Node.js 工具

大家好,我是若川。今天分享一篇用得上的 node 庫 鏈接地址:https://github.com/huaize2020/awesome-nodejs?前言:文章的靈感來源于,社群中某大佬分享一個自己耗時數月維護的github項目 awesome-nodejs 。或許你跟我一樣會有一個疑…

DOMContentLoaded與interactive

ie中inline script執行時竟然第一次進入頁面,doc.readyState是interactive.刷新則是loadinginteractive也就算了,竟然沒有把dom樹構建好,也沒有body...而在inline的腳本里跑計時器什么的,去doc.body.doScroll(left);則有可能碰到interactive時dom樹構建好的情況.而其它瀏覽器in…

figma下載_何時在Figma中使用組或框架

figma下載Groups and Frames have very different uses in Figma, but it’s difficult at first to tell why both of them exist. I can assure you that they complement each other, but first, you need to understand the nuances of each. I’ll show you how to make t…

java標記錯誤_標記電子郵件Java時出錯

在調用以下我的代碼片段時:Message message_in null;inbox instanceof IMAPFolderIMAPFolder f (IMAPFolder)inbox;f.idle();System.out.println("IDLE done");message_in inbox.getMessage(inbox.getMessageCount());message_in.setFlag(Flags.Flag.D…

邁入現代 Web 開發(GMTC 2021 演講全文)

前言:希望像做游戲一樣做 Web 開發的 dexteryy 同學今天在 GMTC 技術大會上又搞了一場「跨年演講」(內容超多的意思),不但現場爆滿、超時嚴重,而且一如既往的講完之后只要把講稿和幻燈片拼起來就能發出來,大…

Laravel 測試: PHPUnit 入門教程

介紹 PHPUnit 測試的基礎知識,使用基本的 PHPUnit 斷言和 Laravel 測試助手。 介紹 PHPUnit 是最古老和最著名的 PHP 單元測試包之一。它主要用于單元測試,這意味著可以用盡可能小的組件測試代碼,但是它也非常靈活,可以用于很多不…

Brad Wilson寫的 ASP.NET MVC 3 Service Location 系列文章索引

Brad Wilson在他自己的博客寫了有關ASP.NET MVC3依賴注入支持的一系列文章,但由于某些原因(你懂的),需要FQ才能閱讀。 為了方便自己也方便喜歡的同學,特意FQ再拷貝回來發布,以下是這一系列文章的索引&#…

注釋標記的原則_它關系到平臺如何標記操縱的媒體。 這是設計師應遵循的12條原則。

注釋標記的原則By Emily Saltz, Tommy Shane, Victoria Kwan, Claire Leibowicz, Claire Wardle埃米莉薩爾茨 ( Emily Saltz) , 湯米沙恩 ( Tommy Shane) , 關 穎琳 ( Victoria Kwan) , 克萊爾萊博維奇 ( Claire Leibowicz) , 克萊…

saltapi java_搭建基于Jenkins salt-api的運維工具

1. 安裝salt-master和salt-minion安裝過程不再贅述,請參考http://docs.saltstack.com/en/latest/topics/installation/index.html2. 安裝salt-api,cherrypy用來jenkins與salt通信啟用salt-api在salt master的配置文件中添加rest_cherrypy:port: 8010host…

他開發了redux,昨晚字節一面卻掛了?

大家好,我是若川,誠邀你進群交流學習。今天分享一次直播的記錄。我寫過redux源碼文章。動手按照文中例子學習,我相信會有所收獲。學習源碼系列、面試、年度總結、JS基礎系列redux的作者是誰?Dan,他的全稱叫做Dan Abram…

Onew積極開拓國際市場,為全球用戶提供全方位金融服務

當區塊鏈技術剛被提出的時候,金融被認為是最主要的應用場景之一,具體包括建立基于區塊鏈技術的銀行間點對點支付結算系統和跨境支付系統、在交易所運用區塊鏈技術實現股權的登記和轉讓等。 區塊鏈應用于金融領域有著天生的絕對優勢,主觀來看&…

高通董事長:努力降低智能手機價格

高通董事長:努力降低智能手機價格 高通公司董事長兼CEO保羅雅各布近日表示,2011年高通除了繼續與各方合作提供高端及各層次智能手機外,將更加致力于降低智能手機的價格。 手機將成為個人生活中心 作為移動通信芯片領域的霸主,高通…

mysql數據庫的新特性_【數據庫】MySQL新特性歸檔介紹

MySQL 8.0.17發布了,看了下release note,發現果真如之前預期的那樣,恢復了redo log歸檔(redo log archiving)功能。之所以說是“恢復”,那是因為在InnoDB非常古老的版本(MySQL 4.0.6之前的版本)才存在,之后就取消了&am…

為什么同事寫的代碼那么優雅~

大家好,我是若川,誠邀你進群交流學習。今天分享一篇相對輕松的代碼簡潔之道。學習源碼系列、面試、年度總結、JS基礎系列內容出自《代碼整潔之道》、Alex Kondov[1]的博文tao-of-react[2]和《Clean Code of Javascript》image.png代碼整潔有什么用&#…

[轉]讓你賺大錢成富翁的4個投資習慣

本文轉自:http://bbs.jrj.com.cn/msg,68723793.html 第一條:對自己進行投資  這是最大最大的投資,當然收獲也是最為豐盛的。藝不壓身,這句話非常有哲理。朋友今年27歲,可是毫不夸張地說,他已經具有了百萬…

thymeleaf th:href url傳遞多參數

<a th:href"{/teacherShowMember(class_id${class.classId}&#xff0c;class_name${class.className})}"></a> thymeleaf使用&#xff08;,,&#xff09;的形式解析多個參數,結合${}放置變量十分方便 傳統URL傳遞多參數使用&#xff1f;&拼接 <a…

spring 加載java類_在Spring中基于Java類進行配置的完整步驟

在Spring中基于Java類進行配置的完整步驟發布于 2020-7-7|復制鏈接基于Java配置選項&#xff0c;可以編寫大多數的Spring不用配置XML&#xff0c;下面前言JavaConfig 原來是 Spring 的一個子項目&#xff0c;它通過 Java 類的方式提供 Bean 的定義信息&#xff0c;在 Spring4 的…

2021 年最值得了解的 Node.js 工具(下)

大家好&#xff0c;我是若川&#xff0c;誠邀你加群長期交流。今天分享一篇用得上的 node 庫。下篇。鏈接地址&#xff1a;https://github.com/huaize2020/awesome-nodejs。上篇是&#xff1a;2021 年最值得了解的 Node.js 工具?前言&#xff1a;前端時間分享了這些node開源工…