Arcade Documentation Release 1.1.0

Total Page:16

File Type:pdf, Size:1020Kb

Arcade Documentation Release 1.1.0 Arcade Documentation Release 1.1.0 Paul Vincent Craven Jul 05, 2017 Contents 1 Learn about it: 3 2 Give feedback: 5 3 Contribute to the development:7 3.1 Examples.................................................7 3.1.1 Example Code.........................................7 3.1.1.1 Drawing........................................7 3.1.1.2 Animation.......................................8 3.1.1.3 Drawing with Loops..................................8 3.1.1.4 User Control......................................8 3.1.1.5 Sprites......................................... 21 3.1.1.6 Other.......................................... 27 3.2 Installation................................................ 32 3.2.1 Installation Instructions..................................... 32 3.2.1.1 Installation on Windows................................ 33 3.2.1.2 Installation on the Mac................................ 35 3.2.1.3 Installation on Linux.................................. 36 3.3 API Documentation........................................... 37 3.3.1 Arcade Package API...................................... 37 3.3.1.1 Submodules...................................... 37 3.3.1.2 Arcade Subpackages.................................. 37 3.4 How to Contribute............................................ 58 3.4.1 How to Contribute....................................... 58 3.4.1.1 How to contribute without coding........................... 58 3.4.1.2 How to contribute code................................ 58 3.4.2 Directory Structure....................................... 59 3.4.3 How to Compile......................................... 59 3.4.3.1 Windows........................................ 59 3.4.3.2 Linux.......................................... 59 3.4.4 How to Submit Changes.................................... 60 3.5 More Information............................................ 60 3.5.1 Pygame Comparison...................................... 60 3.5.2 Suggested Curriculum..................................... 61 3.5.2.1 Stage 1:........................................ 61 3.5.2.2 Stage 2:........................................ 61 3.5.2.3 Stage 3:........................................ 61 i 3.5.2.4 Stage 4:........................................ 62 3.5.2.5 Stage 5:........................................ 62 3.5.2.6 Stage 6:........................................ 62 4 License 63 ii Arcade Documentation, Release 1.1.0 Arcade is an easy-to-learn Python library for creating 2D video games. It is ideal for people learning to program, or developers that want to code a 2D game without learning a complex framework. Contents 1 Arcade Documentation, Release 1.1.0 2 Contents CHAPTER 1 Learn about it: • Installation Instructions • Example Code • Arcade Package API • quick-index • Arcade on PyPi • Pygame Comparison 3 Arcade Documentation, Release 1.1.0 4 Chapter 1. Learn about it: CHAPTER 2 Give feedback: • GitHub Arcade Issue List • Reddit Discussion Group • Email: [email protected] 5 Arcade Documentation, Release 1.1.0 6 Chapter 2. Give feedback: CHAPTER 3 Contribute to the development: • How to Contribute • GitHub Source Code for Arcade The status of the build is here: Examples Example Code Drawing examples/thumbs/drawing_primitives.png Fig. 3.1: drawing_primitives examples/thumbs/drawing_with_functions.png Fig. 3.2: drawing_with_functions 7 Arcade Documentation, Release 1.1.0 examples/thumbs/drawing_text.png Fig. 3.3: drawing_text examples/thumbs/array_backed_grid.png Fig. 3.4: array_backed_grid Animation examples/thumbs/bouncing_rectangle.png Fig. 3.5: bouncing_rectangle Drawing with Loops User Control 8 Chapter 3. Contribute to the development: Arcade Documentation, Release 1.1.0 examples/thumbs/bouncing_ball.png Fig. 3.6: bouncing_ball examples/thumbs/bouncing_balls.png Fig. 3.7: bouncing_balls examples/thumbs/radar_sweep.png Fig. 3.8: radar_sweep examples/thumbs/drawing_with_loops.png Fig. 3.9: drawing_with_loops examples/thumbs/nested_loops_box.png Fig. 3.10: nested_loops_box examples/thumbs/nested_loops_bottom_left_triangle.png Fig. 3.11: nested_loops_bottom_left_triangle 3.1. Examples 9 Arcade Documentation, Release 1.1.0 examples/thumbs/nested_loops_top_right_triangle.png Fig. 3.12: nested_loops_top_right_triangle examples/thumbs/nested_loops_top_left_triangle.png Fig. 3.13: nested_loops_bottom_left_triangle examples/thumbs/nested_loops_top_right_triangle.png Fig. 3.14: nested_loops_top_right_triangle examples/thumbs/shapes.png Fig. 3.15: shapes examples/thumbs/snow.png Fig. 3.16: snow 10 Chapter 3. Contribute to the development: Arcade Documentation, Release 1.1.0 User control: Mouse Listing 3.1: move_mouse.py 1 """ 2 This simple animation example shows how to move an item with the mouse, and 3 handle mouse clicks. 4 """ 5 6 import arcade 7 8 # Set up the constants 9 SCREEN_WIDTH= 800 10 SCREEN_HEIGHT= 600 11 12 RECT_WIDTH= 50 3.1. Examples 11 Arcade Documentation, Release 1.1.0 13 RECT_HEIGHT= 50 14 15 16 class Rectangle: 17 """ Class to represent a rectangle on the screen """ 18 19 def __init__(self, x, y, width, height, angle, color): 20 """ Initialize our rectangle variables """ 21 22 # Position 23 self.x=x 24 self.y=y 25 26 # Size and rotation 27 self.width= width 28 self.height= height 29 self.angle= angle 30 31 # Color 32 self.color= color 33 34 def draw(self): 35 """ Draw our rectangle """ 36 arcade.draw_rectangle_filled(self.x, self.y, self.width, self.height, 37 self.color, self.angle) 38 39 40 class MyApplication(arcade.Window): 41 """ Main application class. """ 42 def __init__(self, width, height): 43 super().__init__(width, height, title="Keyboard control") 44 self.player= None 45 self.left_down= False 46 47 def setup(self): 48 """ Set up the game and initialize the variables. """ 49 width= RECT_WIDTH 50 height= RECT_HEIGHT 51 x=0 52 y= RECT_HEIGHT 53 angle=0 54 color= arcade.color.WHITE 55 self.player= Rectangle(x, y, width, height, angle, color) 56 self.left_down= False 57 58 def update(self, dt): 59 """ Move everything """ 60 if self.left_down: 61 self.player.angle+=2 62 63 def on_draw(self): 64 """ 65 Render the screen. 66 """ 67 arcade.start_render() 68 69 self.player.draw() 70 12 Chapter 3. Contribute to the development: Arcade Documentation, Release 1.1.0 71 def on_mouse_motion(self, x, y, dx, dy): 72 """ 73 Called whenever the mouse moves. 74 """ 75 self.player.x=x 76 self.player.y=y 77 78 def on_mouse_press(self, x, y, button, modifiers): 79 """ 80 Called when the user presses a mouse button. 81 """ 82 print(button) 83 if button == arcade.MOUSE_BUTTON_LEFT: 84 self.left_down= True 85 86 def on_mouse_release(self, x, y, button, modifiers): 87 """ 88 Called when a user releases a mouse button. 89 """ 90 if button == arcade.MOUSE_BUTTON_LEFT: 91 self.left_down= False 92 93 94 def main(): 95 window= MyApplication(SCREEN_WIDTH, SCREEN_HEIGHT) 96 window.setup() 97 arcade.run() 98 99 main() 3.1. Examples 13 Arcade Documentation, Release 1.1.0 User control: Keyboard Listing 3.2: move_keyboard.py 1 """ 2 This simple animation example shows how to move an item with the keyboard. 3 """ 4 5 import arcade 6 7 # Set up the constants 8 SCREEN_WIDTH= 800 9 SCREEN_HEIGHT= 600 10 11 RECT_WIDTH= 50 12 RECT_HEIGHT= 50 14 Chapter 3. Contribute to the development: Arcade Documentation, Release 1.1.0 13 14 MOVEMENT_SPEED=5 15 16 17 class Rectangle: 18 """ Class to represent a rectangle on the screen """ 19 20 def __init__(self, x, y, width, height, angle, color): 21 """ Initialize our rectangle variables """ 22 23 # Position 24 self.x=x 25 self.y=y 26 27 # Vector 28 self.delta_x=0 29 self.delta_y=0 30 31 # Size and rotation 32 self.width= width 33 self.height= height 34 self.angle= angle 35 36 # Color 37 self.color= color 38 39 def draw(self): 40 """ Draw our rectangle """ 41 arcade.draw_rectangle_filled(self.x, self.y, self.width, self.height, 42 self.color, self.angle) 43 44 def move(self): 45 """ Move our rectangle """ 46 47 # Move left/right 48 self.x+= self.delta_x 49 50 # See if we've gone beyond the border. If so, reset our position 51 # back to the border. 52 if self.x< RECT_WIDTH//2: 53 self.x= RECT_WIDTH//2 54 if self.x> SCREEN_WIDTH- (RECT_WIDTH//2): 55 self.x= SCREEN_WIDTH- (RECT_WIDTH//2) 56 57 # Move up/down 58 self.y+= self.delta_y 59 60 # Check top and bottom boundaries 61 if self.y< RECT_HEIGHT//2: 62 self.y= RECT_HEIGHT//2 63 if self.y> SCREEN_HEIGHT- (RECT_HEIGHT//2): 64 self.y= SCREEN_HEIGHT- (RECT_HEIGHT//2) 65 66 67 class MyApplication(arcade.Window): 68 """ 69 Main application class. 70 """ 3.1. Examples 15 Arcade Documentation, Release 1.1.0 71 def __init__(self, width, height): 72 super().__init__(width, height, title="Keyboard control") 73 self.player= None 74 self.left_down= False 75 76 def setup(self): 77 """ Set up the game and initialize the variables. """ 78 width= RECT_WIDTH 79 height= RECT_HEIGHT 80 x= SCREEN_WIDTH//2 81 y= SCREEN_HEIGHT//2 82 angle=0 83 color= arcade.color.WHITE 84 self.player= Rectangle(x, y, width, height, angle, color) 85 self.left_down= False 86 87 def update(self, dt): 88 """ Move everything """ 89 self.player.move() 90 91 def on_draw(self): 92 """ 93 Render the screen. 94 """ 95 arcade.start_render() 96 97 self.player.draw() 98 99 def on_key_press(self, key, modifiers): 100 """ 101 Called whenever the mouse moves. 102 """ 103 if key == arcade.key.UP: 104 self.player.delta_y= MOVEMENT_SPEED 105 elif key == arcade.key.DOWN: 106 self.player.delta_y=-MOVEMENT_SPEED 107 elif key == arcade.key.LEFT: 108 self.player.delta_x=-MOVEMENT_SPEED 109 elif key == arcade.key.RIGHT: 110 self.player.delta_x=
Recommended publications
  • ROCK-COLOR CHART with Genuine Munsell® Color Chips
    geological ROCK-COLOR CHART with genuine Munsell® color chips Produced by geological ROCK-COLOR CHART with genuine Munsell® color chips 2009 Year Revised | 2009 Production Date put into use This publication is a revision of the previously published Geological Society of America (GSA) Rock-Color Chart prepared by the Rock-Color Chart Committee (representing the U.S. Geological Survey, GSA, the American Association of Petroleum Geologists, the Society of Economic Geologists, and the Association of American State Geologists). Colors within this chart are the same as those used in previous GSA editions, and the chart was produced in cooperation with GSA. Produced by 4300 44th Street • Grand Rapids, MI 49512 • Tel: 877-888-1720 • munsell.com The Rock-Color Chart The pages within this book are cleanable and can be exposed to the standard environmental conditions that are met in the field. This does not mean that the book will be able to withstand all of the environmental conditions that it is exposed to in the field. For the cleaning of the colored pages, please make sure not to use a cleaning agent or materials that are coarse in nature. These materials could either damage the surface of the color chips or cause the color chips to start to delaminate from the pages. With the specifying of the rock color it is important to remember to replace the rock color chart book on a regular basis so that the colors being specified are consistent from one individual to another. We recommend that you mark the date when you started to use the the book.
    [Show full text]
  • Ph.D. Thesis Abstractindex
    COLOR REPRODUCTION OF FACIAL PATTERN AND ENDOSCOPIC IMAGE BASED ON COLOR APPEARANCE MODELS December 1996 Francisco Hideki Imai Graduate School of Science and Technology Chiba University, JAPAN Dedicated to my parents ii COLOR REPRODUCTION OF FACIAL PATTERN AND ENDOSCOPIC IMAGE BASED ON COLOR APPEARANCE MODELS A dissertation submitted to the Graduate School of Science and Technology of Chiba University in partial fulfillment of the requirements for the degree of Doctor of Philosophy by Francisco Hideki Imai December 1996 iii Declaration This is to certify that this work has been done by me and it has not been submitted elsewhere for the award of any degree or diploma. Countersigned Signature of the student ___________________________________ _______________________________ Yoichi Miyake, Professor Francisco Hideki Imai iv The undersigned have examined the dissertation entitled COLOR REPRODUCTION OF FACIAL PATTERN AND ENDOSCOPIC IMAGE BASED ON COLOR APPEARANCE MODELS presented by _______Francisco Hideki Imai____________, a candidate for the degree of Doctor of Philosophy, and hereby certify that it is worthy of acceptance. ______________________________ ______________________________ Date Advisor Yoichi Miyake, Professor EXAMINING COMMITTEE ____________________________ Yoshizumi Yasuda, Professor ____________________________ Toshio Honda, Professor ____________________________ Hirohisa Yaguchi, Professor ____________________________ Atsushi Imiya, Associate Professor v Abstract In recent years, many imaging systems have been developed, and it became increasingly important to exchange image data through the computer network. Therefore, it is required to reproduce color independently on each imaging device. In the studies of device independent color reproduction, colorimetric color reproduction has been done, namely color with same chromaticity or tristimulus values is reproduced. However, even if the tristimulus values are the same, color appearance is not always same under different viewing conditions.
    [Show full text]
  • Medtronic Brand Color Chart
    Medtronic Brand Color Chart Medtronic Visual Identity System: Color Ratios Navy Blue Medtronic Blue Cobalt Blue Charcoal Blue Gray Dark Gray Yellow Light Orange Gray Orange Medium Blue Sky Blue Light Blue Light Gray Pale Gray White Purple Green Turquoise Primary Blue Color Palette 70% Primary Neutral Color Palette 20% Accent Color Palette 10% The Medtronic Brand Color Palette was created for use in all material. Please use the CMYK, RGB, HEX, and LAB values as often as possible. If you are not able to use the LAB values, you can use the Pantone equivalents, but be aware the color output will vary from the other four color breakdowns. If you need a spot color, the preference is for you to use the LAB values. Primary Blue Color Palette Navy Blue Medtronic Blue C: 100 C: 99 R: 0 L: 15 R: 0 L: 31 M: 94 Web/HEX Pantone M: 74 Web/HEX Pantone G: 30 A: 2 G: 75 A: -2 Y: 47 #001E46 533 C Y: 17 #004B87 2154 C B: 70 B: -20 B: 135 B: -40 K: 43 K: 4 Cobalt Blue Medium Blue C: 81 C: 73 R: 0 L: 52 R: 0 L: 64 M: 35 Web/HEX Pantone M: 12 Web/HEX Pantone G: 133 A: -12 G: 169 A: -23 Y: 0 #0085CA 2382 C Y: 0 #00A9E0 2191 C B: 202 B: -45 B: 224 B: -39 K: 0 K : 0 Sky Blue Light Blue C: 55 C: 29 R: 113 L: 75 R: 185 L: 85 M: 4 Web/HEX Pantone M: 5 Web/HEX Pantone G: 197 A: -20 G: 217 A: -9 Y: 4 #71C5E8 297 C Y: 5 #B9D9EB 290 C B: 232 B: -26 B: 235 B: -13 K: 0 K: 0 Primary Neutral Color Palette Charcoal Gray Blue Gray C: 0 Pantone C: 68 R: 83 L: 36 R: 91 L: 51 M: 0 Web/HEX Cool M: 40 Web/HEX Pantone G: 86 A: 0 G: 127 A: -9 Y: 0 #53565a Gray Y: 28 #5B7F95 5415
    [Show full text]
  • Digital Color Workflows and the HP Dreamcolor Lp2480zx Professional Display
    Digital Color Workflows and the HP DreamColor LP2480zx Professional Display Improving accuracy and predictability in color processing at the designer’s desk can increase productivity and improve quality of digital color projects in animation, game development, film/video post production, broadcast, product design, graphic arts and photography. Introduction ...................................................................................................................................2 Managing color .............................................................................................................................3 The property of color ...................................................................................................................3 The RGB color set ....................................................................................................................3 The CMYK color set .................................................................................................................3 Color spaces...........................................................................................................................4 Gamuts..................................................................................................................................5 The digital workflow ....................................................................................................................5 Color profiles..........................................................................................................................5
    [Show full text]
  • RAL Colour Chart
    RAL Colour Chart The colours depicted on the following chart are for guidelines only. The finished colour may not be as shown here. 1000 1001 1002 1003 1004 1005 Green Beige Pale Beige Sand Yellow Signal Yellow Dark Golden Honey Yellow Yellow 1006 1007 1011 1012 1013 1014 Maize Yellow Chrome Yellow Brown Beige Lemon Yellow Pearl White Dark Ivory 1015 1016 1017 1018 1019 1020 Light Ivory Sulphur Yellow Saffron Yellow Zinc Yellow Grey Beige Olive Yellow 1021 1023 1024 1027 1028 1032 Cadmium Yellow Traffic Yellow Ochre Yellow Curry Yellow Mellon Yellow Broom Yellow 1033 1034 2000 2001 2002 2003 Dahlia Yellow Pastel Yellow Yellow Orange Red Orange Vermillion Pastel Orange 2004 2008 2009 2010 2011 2012 Pure Orange Light Red Traffic Orange Signal Orange Deep Orange Salmon Orange Orange 3000 3001 3002 3003 3004 3005 Flame Red RAL Signal Red Carmine Red Ruby Red Purple Red Wine Red 3007 3009 3011 3012 3013 3014 Black Red Oxide Red Brown Red Beige Red Tomato Red Antique Pink 3015 3016 3017 3018 3020 3022 Light Pink Coral Red Rose Strawberry Red Traffic Red Dark Salmon Red 3027 3031 4001 4002 4003 4004 Raspberry Red Orient Red Red Lilac Red Violet Heather Violet Claret Violet 4005 4006 4007 4008 4009 4010 Blue Lilac Traffic Purple Purple Violet Signal Violet Pastel Violet Telemagenta 5000 5001 5002 5003 5004 5005 Violet Blue Green Blue Ultramarine Blue dark Sapphire Black Blue Signal Blue Blue 5007 5008 5009 5010 5011 5012 Brilliant Blue Grey Blue Light Azure Blue Gentian Blue Steel Blue Light Blue 5013 5014 5015 5017 5018 5019 Dark Cobalt Blue
    [Show full text]
  • RAL COLOR CHART ***** This Chart Is to Be Used As a Guide Only. Colors May Appear Slightly Different ***** Green Beige Purple V
    RAL COLOR CHART ***** This Chart is to be used as a guide only. Colors May Appear Slightly Different ***** RAL 1000 Green Beige RAL 4007 Purple Violet RAL 7008 Khaki Grey RAL 4008 RAL 7009 RAL 1001 Beige Signal Violet Green Grey Tarpaulin RAL 1002 Sand Yellow RAL 4009 Pastel Violet RAL 7010 Grey RAL 1003 Signal Yellow RAL 5000 Violet Blue RAL 7011 Iron Grey RAL 1004 Golden Yellow RAL 5001 Green Blue RAL 7012 Basalt Grey Ultramarine RAL 1005 Honey Yellow RAL 5002 RAL 7013 Brown Grey Blue RAL 1006 Maize Yellow RAL 5003 Saphire Blue RAL 7015 Slate Grey Anthracite RAL 1007 Chrome Yellow RAL 5004 Black Blue RAL 7016 Grey RAL 1011 Brown Beige RAL 5005 Signal Blue RAL 7021 Black Grey RAL 1012 Lemon Yellow RAL 5007 Brillant Blue RAL 7022 Umbra Grey Concrete RAL 1013 Oyster White RAL 5008 Grey Blue RAL 7023 Grey Graphite RAL 1014 Ivory RAL 5009 Azure Blue RAL 7024 Grey Granite RAL 1015 Light Ivory RAL 5010 Gentian Blue RAL 7026 Grey RAL 1016 Sulfer Yellow RAL 5011 Steel Blue RAL 7030 Stone Grey RAL 1017 Saffron Yellow RAL 5012 Light Blue RAL 7031 Blue Grey RAL 1018 Zinc Yellow RAL 5013 Cobolt Blue RAL 7032 Pebble Grey Cement RAL 1019 Grey Beige RAL 5014 Pigieon Blue RAL 7033 Grey RAL 1020 Olive Yellow RAL 5015 Sky Blue RAL 7034 Yellow Grey RAL 1021 Rape Yellow RAL 5017 Traffic Blue RAL 7035 Light Grey Platinum RAL 1023 Traffic Yellow RAL 5018 Turquiose Blue RAL 7036 Grey RAL 1024 Ochre Yellow RAL 5019 Capri Blue RAL 7037 Dusty Grey RAL 1027 Curry RAL 5020 Ocean Blue RAL 7038 Agate Grey RAL 1028 Melon Yellow RAL 5021 Water Blue RAL 7039 Quartz Grey
    [Show full text]
  • 340 K2017D.Pdf
    Contents / Contenido Introduction Game Introducción Color 4 49 Model Game Color Air 7 54 Liquid Color Cases Gold Maletines 16 56 Model Weathering Air Effects 17 60 Metal Pigments Color Pigmentos 42 68 Panzer Model Wash Aces Lavados 46 72 Surface Primer Paint Imprimación Stand 76 90 Diorama Accessories Effects Accesorios 78 92 Premium Publications RC Color Publicaciones 82 94 Auxiliaries Displays Auxiliares Expositores 84 97 Brushes Health & Safety Pinceles Salud y seguridad 88 102 Made in Spain All colors in our catalogue conform to ASTM Pictures courtesy by: Due to the printing process, the colors D-4236 standards and EEC regulation 67/548/ Imágenes cedidas por: reproduced in this catalogue are to be considered CEE, and do not require health labelling. as approximate only, and may not correspond Avatars of War, Juanjo Baron, José Brito, Murat exactly to the originals. Todos los colores en nuestro catálogo están Conform to Özgül, Chema Cabrero, Freebooterminiatures, ASTM D-4236 conformes con las normas ASTM D-4236 (American Angel Giraldez, Raúl Garcia La Torre, Jaime Ortiz, Debido a la impresión en cuatricromía, los colores and Society for Testing and Materials) y con la normativa en este catálogo pueden variar de los colores EEC regulation Plastic Soldier Company Ltd, Euromodelismo, 67/548/CEE Europea 67/548/ CEE. Robert Karlsson “Rogland”, Scratchmod. originales, y su reproducción es tan solo orientativa. Introduction The Vallejo Company was established in 1965, in New Jersey, EN U.S.A. In the first years the company specialized in the manufacture of Film Color, waterbased acrylic colors for animated films (cartoons).
    [Show full text]
  • Gamut Mapping Algorithm Using Lightness Mapping and Multiple Anchor Points for Linear Tone and Maximum Chroma Reproduction
    JOURNAL OF IMAGING SCIENCE AND TECHNOLOGY® • Volume 45, Number 3, May/June 2001 Feature Article Gamut Mapping Algorithm Using Lightness Mapping and Multiple Anchor Points for Linear Tone and Maximum Chroma Reproduction Chae-Soo Lee,L Yang-Woo Park, Seok-Je Cho,* and Yeong-Ho Ha† Department of Software Engineering, Kyungwoon University, Kyungbuk, Korea * Department of Control and Instrumentation Engineering, Korea Maritime University, Yeongdo-ku Pusan, Korea † School of Electronic and Electrical Engineering, Kyungpook National University, Taegu, Korea This article proposes a new gamut-mapping algorithm (GMA) that utilizes both lightness mapping and multiple anchor points. The proposed lightness mapping minimizes the lightness difference of the maximum chroma between two gamuts and produces the linear tone in bright and dark regions. In the chroma mapping, a separate mapping method that utilizes multiple anchor points with constant slopes plus a fixed anchor point is proposed to maintain the maximum chroma and produce a uniform tonal dynamic range. As a result, the proposed algorithm is able to reproduce high quality images using low-cost color devices. Journal of Imaging Science and Technology 45: 209–223 (2001) Introduction of the reproduction’s. Therefore, if the lightness values Some practical output systems are only capable of pro- of the maximum chroma in the two gamuts are not lo- ducing a limited range of colors. The range of produc- cated at the center of the lightness axis of the two media, ible colors on a device is referred to as its gamut. Often, the parametric GMA will produce a different color change an image will contain colors that are outside the gamut in the bright and dark regions.
    [Show full text]
  • Computational RYB Color Model and Its Applications
    IIEEJ Transactions on Image Electronics and Visual Computing Vol.5 No.2 (2017) -- Special Issue on Application-Based Image Processing Technologies -- Computational RYB Color Model and its Applications Junichi SUGITA† (Member), Tokiichiro TAKAHASHI†† (Member) †Tokyo Healthcare University, ††Tokyo Denki University/UEI Research <Summary> The red-yellow-blue (RYB) color model is a subtractive model based on pigment color mixing and is widely used in art education. In the RYB color model, red, yellow, and blue are defined as the primary colors. In this study, we apply this model to computers by formulating a conversion between the red-green-blue (RGB) and RYB color spaces. In addition, we present a class of compositing methods in the RYB color space. Moreover, we prescribe the appropriate uses of these compo- siting methods in different situations. By using RYB color compositing, paint-like compositing can be easily achieved. We also verified the effectiveness of our proposed method by using several experiments and demonstrated its application on the basis of RYB color compositing. Keywords: RYB, RGB, CMY(K), color model, color space, color compositing man perception system and computer displays, most com- 1. Introduction puter applications use the red-green-blue (RGB) color mod- Most people have had the experience of creating an arbi- el3); however, this model is not comprehensible for many trary color by mixing different color pigments on a palette or people who not trained in the RGB color model because of a canvas. The red-yellow-blue (RYB) color model proposed its use of additive color mixing. As shown in Fig.
    [Show full text]
  • Jupyter Tutorial Release 0.8.0
    Jupyter Tutorial Release 0.8.0 Veit Schiele Oct 01, 2021 CONTENTS 1 Introduction 3 1.1 Status...................................................3 1.2 Target group...............................................3 1.3 Structure of the Jupyter tutorial.....................................3 1.4 Why Jupyter?...............................................4 1.5 Jupyter infrastructure...........................................4 2 First steps 5 2.1 Install Jupyter Notebook.........................................5 2.2 Create notebook.............................................7 2.3 Example................................................. 10 2.4 Installation................................................ 13 2.5 Follow us................................................. 15 2.6 Pull-Requests............................................... 15 3 Workspace 17 3.1 IPython.................................................. 17 3.2 Jupyter.................................................. 50 4 Read, persist and provide data 143 4.1 Open data................................................. 143 4.2 Serialisation formats........................................... 144 4.3 Requests................................................. 154 4.4 BeautifulSoup.............................................. 159 4.5 Intake................................................... 160 4.6 PostgreSQL................................................ 174 4.7 NoSQL databases............................................ 199 4.8 Application Programming Interface (API)..............................
    [Show full text]
  • Ral Colour Chart.Pdf
    RAL Classic Colour Chart Page 1 The colours depicted on the following chart are for guidance only. The displayed colour will depend on your printer, monitor and browser and pearl or metallic colours cannot be shown adequately. The finished colour, therefore, may not be as shown here. Colour-chart courtesy of RAL 1000 RAL 1001 RAL 1002 RAL 1003 RAL 1004 RAL 1005 Green beige Beige Sand yellow Signal yellow Golden yellow Honey yellow RAL 1006 RAL 1007 RAL 1011 RAL 1012 RAL 1013 RAL 1014 Maize yellow Daffodil yellow Brown beige Lemon yellow Oyster white Ivory RAL 1015 RAL 1016 RAL 1017 RAL 1018 RAL 1019 RAL 1020 Light ivory Sulphur yellow Saffron yellow Zinc yellow Grey beige Olive yellow RAL 1021 RAL 1023 RAL 1024 RAL 1026 RAL 1027 RAL 1028 Rape yellow Traffic yellow Ochre yellow Luminous yellow Curry Melon yellow RAL 1032 RAL 1033 RAL 1034 RAL 1035 RAL 1036 RAL 1037 Broom yellow Dahlia yellow Pastel yellow Pearl beige Pearl gold Sun yellow RAL 2000 RAL 2001 RAL 2002 RAL 2003 RAL 2004 RAL 2005 Yellow orange Red orange Vermilion Pastel orange Pure orange Luminous orange RAL 2007 RAL 2008 RAL 2009 RAL 2010 RAL 2011 RAL 2012 Luminous b't orange Bright red orange Traffic orange Signal orange Deep orange Salmon orange RAL 2013 RAL 3000 RAL 3001 RAL 3002 RAL 3003 RAL 3004 Pearl orange Flame red Signal red Carmine red Ruby red Purple red RAL 3005 RAL 3007 RAL 3009 RAL 3011 RAL 3012 RAL 3013 Wine red Black red Oxide red Brown red Beige red Tomato red RAL 3014 RAL 3015 RAL 3016 RAL 3017 RAL 3018 RAL 3020 Antique pink Light pink Coral red Rose Strawberry red Traffic red RAL Classic Colour Chart Page 2 The colours depicted on the following chart are for guidance only.
    [Show full text]
  • BSCW Administrator Documentation Release 7.4.1
    BSCW Administrator Documentation Release 7.4.1 OrbiTeam Software Mar 11, 2021 CONTENTS 1 How to read this Manual1 2 Installation of the BSCW server3 2.1 General Requirements........................................3 2.2 Security considerations........................................4 2.3 EU - General Data Protection Regulation..............................4 2.4 Upgrading to BSCW 7.4.1......................................5 2.4.1 Upgrading on Unix..................................... 13 2.4.2 Upgrading on Windows................................... 17 3 Installation procedure for Unix 19 3.1 System requirements......................................... 19 3.2 Installation.............................................. 20 3.3 Software for BSCW Preview..................................... 26 3.4 Configuration............................................. 30 3.4.1 Apache HTTP Server Configuration............................ 30 3.4.2 BSCW instance configuration............................... 35 3.4.3 Administrator account................................... 36 3.4.4 De-Installation....................................... 37 3.5 Database Server Startup, Garbage Collection and Backup..................... 37 3.5.1 BSCW Startup....................................... 38 3.5.2 Garbage Collection..................................... 38 3.5.3 Backup........................................... 38 3.6 Folder Mail Delivery......................................... 39 3.6.1 BSCW mail delivery agent (MDA)............................. 39 3.6.2 Local Mail Transfer Agent
    [Show full text]