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,一经查实,立即删除!

相关文章

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开源工…