30天速成绘图指南:轻松学会产品设计

4星 · 超过85%的资源 需积分: 43 4 下载量 110 浏览量 更新于2024-07-23 收藏 8.58MB PDF 举报
《You Can Draw in 30 Days》是一本专为产品经理设计的专业书籍,旨在帮助读者掌握绘画技能,以便在与UI设计师交流时更加自信。作者Mark Kistler是一位备受认可的艺术家,他的作品《Drawing in 3-D with Mark Kistler》已经销售超过50万册,证明了这本书的有效性和吸引力。 该书的特色在于它提供了一种简单有趣的学习方法,让零基础的人在一个月内就能学会画画。书名中的“30 Days”明确表明了课程的紧凑和高效,对于那些希望快速提升个人技能或想丰富职业素养的产品经理来说,这是一本极具实用价值的教材。 书中涵盖了绘画的基础知识,包括线条、形状、色彩和比例等基本概念,通过一系列循序渐进的练习,读者可以逐步掌握这些技巧。此外,由于作者在产品设计领域的经验,书中可能还融入了一些设计思维和用户体验视角,这对于理解用户界面设计的理念会有很大帮助。 版权方面,该书由Mark Kistler撰写,并受到版权保护。未经Da Capo Press的书面许可,任何形式的复制、存储、传播都是不被允许的。本书是在美国印刷,由Perseus Books Group的Relay Light字体排版,符合Library of Congress的目录编目标准。 《You Can Draw in 30 Days》不仅是一本艺术教程,也是产品经理提升自身综合素质的实用工具书。通过跟随书中的指导,读者不仅能提升自己的绘画技能,还能增进与UI设计师之间的沟通,提升项目实施的质量和效率。无论是为了个人兴趣还是职业发展,这本书都能成为宝贵的资源。

帮我写出以下java代码:Add a class Bubble that extends Shape. The Bubble class has an instance variable called radius of type double that represents the radius of the bubble. The constructor of the Bubble class takes an x and a y as arguments, which represent the position of the new bubble. The radius of a new bubble is always 10 and never changes after that. The isVisible method indicates whether the bubble is currently visible inside a window of width w and height h (position (0, 0) is in the upper-left corner of the window). The bubble is considered visible if at least one pixel of the bubble is visible. Therefore a bubble might be visible even when its center is outside the window, as long as the edge of the bubble is still visible inside the window. The code of the isVisible method is a little bit complex, mostly because of the case where the center of the circle is just outside one of the corners of the window. So here is the code of the isVisible method, which you can directly copy-paste into your assignment: // Find the point (wx, wy) inside the window which is closest to the // center (x, y) of the circle. In other words, find the wx in the // interval [0, w - 1] which is closest to x, and find the wy in the // interval [0, h - 1] which is closest to y. // If the distance between (wx, wy) and (x, y) is less than the radius // of the circle (using Pythagoras's theorem) then at least part of // the circle is visible in the window. // Note: if the center of the circle is inside the window, then (wx, wy) // is the same as (x, y), and the distance is 0. public boolean isVisible(int w, int h) { double x = getX(); double y = getY(); double wx = (x < 0 ? 0 : (x > w - 1 ? w - 1 : x)); double wy = (y < 0 ? 0 : (y > h - 1 ? h - 1 : y)); double dx = wx - x; double dy = wy - y; return dx * dx + dy * dy <= radius * radius; } The isIn method indicates whether the point at coordinates (x, y) (which are the arguments of the method) is currently inside the bubble or not. The edge of the bubble counts as being inside of the bubble. HINT: use Pythagoras's theorem to compute the distance from the center of the bubble to the point (x, y). The draw method uses the graphics object g to draw the bubble. HINT: remember that the color of the graphics object g is changed in the draw method of the superclass of Bubble. Also add a testBubble method to test all your methods (including inherited methods, but excluding the isVisible method, which I provide, and excluding the draw method since it requires as argument a graphics object g that you

2023-05-22 上传