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.mzph.cn/news/275720.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

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 。或许你跟我一样会有一个疑…

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…

迈入现代 Web 开发(GMTC 2021 演讲全文)

前言:希望像做游戏一样做 Web 开发的 dexteryy 同学今天在 GMTC 技术大会上又搞了一场「跨年演讲」(内容超多的意思),不但现场爆满、超时严重,而且一如既往的讲完之后只要把讲稿和幻灯片拼起来就能发出来,大…

注释标记的原则_它关系到平台如何标记操纵的媒体。 这是设计师应遵循的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…

高通董事长:努力降低智能手机价格

高通董事长:努力降低智能手机价格 高通公司董事长兼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代码整洁有什么用&#…

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

大家好,我是若川,诚邀你加群长期交流。今天分享一篇用得上的 node 库。下篇。链接地址:https://github.com/huaize2020/awesome-nodejs。上篇是:2021 年最值得了解的 Node.js 工具❝前言:前端时间分享了这些node开源工…

【阿里内部应用】基于Blink为新商业调控打造实时大数据交互查询服务

基于Blink为新商业调控打造实时大数据交互查询服务 案例与解决方案汇总页:阿里云实时计算产品案例&解决方案汇总从IT到DT、从电商到新商业,阿里巴巴的每个细胞都存在大数据的DNA,如何挖掘大数据的价值成为抢占未来先机的金钥匙&#xff0…

Vite 的好与坏

大家好,我是若川,诚邀你进群交流学习。今天分享一篇关于Vite的文章。学习源码系列、面试、年度总结、JS基础系列。全文 3000 字,欢迎点赞关注转发一、Vite 是什么2020年4月,尤大大发了这么一个推:随后,2021…

Windows phone 7新开发工具发布

春节假期已经接近尾声. 马上第一个工作日就要来临. 春节真的不再是一个简简单单的节日. 有时让人感到欣喜 这意味这一年的忙碌都会因为这个节日的到来而画上一个终止符.面临一个不长也不短的假期.眼下的一年翻过去 新的一年即将到来. 似乎一切都可以重新开始. 有时又令人感到无…

opentaps mysql_opentaps 1.4 联接 mysql 笔记

opentaps 1.4 连接 mysql 笔记一、安装 MySQ 略...二、创建MySQL Database opentaps ERP CRM1.mysql -u root -h 127.0.0.1 -p 2.mysql>create database opentaps default CHARACTER SET utf8 COLLATE utf8_general_ci;3.mysql>create user opentaps;4.mysql>grant …

React 核心开发者 Dan Abramov 访谈实录

大家好,我是若川。面试、学习源码系列、年度总结、JS基础系列译者注:本译文是在「在线对话 React.js 核心开发者」一个半小时直播的基础上进行的原文翻译,包括了直播中的所有问答内容,尽可能保留了 Dan 回答的中心语义&#xff0c…

python ev3图形化编程软件下载_mPython(图形化编程软件)

mPython是盛思技术团队在BBC官方原版PythonEditor基础上、拓展开发的应用软件。可以进行可视化代码编程,有hex、python、blockly三种代码读写等功能。功能介绍1、不依赖网络,可离线安装使用2、支持hex、python、blockly三种代码的读写3、blockly模式下支…

python如何安装panda数据库_在Pycharm中安装Pandas库方法(简单易懂)

开发环境的搭建是一件入门比较头疼的事情,在上期的文稿基础上,增加一项Anaconda的安装介绍。Anaconda是Python的一个发行版本,安装好了Anaconda就相当于安装好了Python,并且里面还集成了很多Python科学计算的第三方库。比如我们需…

译文 | Vue 在哪些方面做的比 React 更好?

大家好,我是若川。在过去的五年中,我一直是一名 React 工程师。我爱React。我喜欢开发 React 应用程序。我认为它是目前最好的UI框架之一。但是,在这个领域有一些竞争对手。其中最大的是 Vue.js 。我以前玩过一些 Vue.js,但我认为…

web mp4第一帧_Web成帧器就在这里!

web mp4第一帧The Framer Team is pulling up it’s pants. I sniffed something cooking when they announced a public beta for Framer for web… FRAMER FOR WEB? Yes, I don’t know how they did it, but their powerful set of tools, plugins and animation controls …