Visual Style: Difference between revisions

Jump to navigation Jump to search
3,083 bytes added ,  21:19, 6 November 2023
Add gpl download and import instructions
m (move color table into template)
(Add gpl download and import instructions)
 
(23 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{stub}}
{{Gamename}} employs a restricted “low-res” visual aesthetic that complements its history-focused themes by referencing and paying homage to hardware and software of the past.


''Caves of Qud'' employs a restricted visual style that can be described as follows:
==Graphics==


* There's a limited palette of 18 colors.
In-game screens display [https://en.wikipedia.org/wiki/Vignetting vignetting] and visual [https://en.wikipedia.org/wiki/Scan_line scan lines], which give the impression that the game is being viewed through an older style of computer terminal. (Either or both of these effects can be disabled from the options menu.)
* Each tile (sprite) can have up to two colors besides transparent.
* Each tile is 18 pixels wide by 24 pixels tall.


Additionally, composite screens or art pieces in its style employ a vignette effect<sup>expound</sup> and a scanline effect<sup>expound</sup>.
Each game zone (or console screen) is 80 tiles (or characters) wide by 25 tall. Each tile is 16 pixels wide by 24 pixels tall and may contain up to three of the game's 18 fixed colors, referred to as the primary, detail, and background colors. Usually the background is left black (the color referred to in the game code as <code>k</code>, and fanonically called “Qud viridian”; see the [[#Palette|Palette]] section). The tiles may be scaled to fit the actual size of the game window.


=Palette=
===Exceptions===


''Caves of Qud'''s palette comprises 18 specific colors, given in the following table:
Some tiles use colors outside of the fixed palette. These colors are always some mixture of the primary and detail colors of the tile. (See [[Modding:Tiles#4th Color]] for details.)
 
Game mods are allowed to specify that their tiles are of sizes other than 16 by 24, however the base game itself doesn't use this function. (See [[Modding:Tiles#Tile_Size]] for details.)
 
==Palette==
 
The tile palette comprises 18 colors, which are given in the following table:


{{Color Table}}
{{Color Table}}


==Palette File for Pixel Art==
===Palette Files for Pixel Art===
 
====PNG palette format====
 
Some programs including Aseprite can import palettes in PNG format. You can download and import the following .png file: [[File:Caves of qud palette.png]]
 
====JASC palette format (.pal)====
 
The JASC palette format is useable by a variety of pixel art programs, including Piskel and Aseprite. (It isn't useable by GIMP; see the [[#GIMP palette format (.gpl)|GIMP palette format]] section.)


Copy the following text block into Notepad or another plain text editor and save the file as <code>Caves of Qud.pal</code>. Then you can import it into a pixel art program such as Piskel or Aseprite.
Copy the following text block into Notepad or another plain text editor and save the file as <code>Caves of Qud.pal</code>. Then you can import it into a pixel art program. (See your program's documentation for details on how.)


<pre>JASC-PAL
<pre>JASC-PAL
Line 41: Line 53:
255 255 255</pre>
255 255 255</pre>


=See Also=
====GIMP palette format (.gpl)====
 
[[Media:CavesOfQud.gpl|Download GPL]]
 
To import the gpl file, open GIMP, select <code>Windows</code> -> <code>Dockable Dialogs</code> -> <code>Palettes</code>.<br/>
Right-click anywhere within the docked Palettes dialog, click <code>Import Palette...</code>, and choose the <code>Palette file</code> radial option.
 
You can also place the file directly in your GIMP palettes folder. This folder's location varies by platform:
* Windows: <code>%APPDATA%\GIMP\2.X\palettes\</code>
* Linux: <code>~/.config/GIMP/2.X/palettes/</code>
* OSX: <code>~/Library/Application Support/GIMP/2.X/palettes/</code>
 
Below are the contents of the palette file.
<pre>GIMP Palette
Name: Caves of Qud
Columns: 5
#
  0  0  0 True Black
255 255 255 White (Y)
177 201 195 Gray (y)
215  66  0 Bright Red (R)
166  74  46 Dark Red (r)
233 159  16 Bright Orange (O)
241  95  34 Dark Orange (o)
207 192  65 Yellow (W)
152 135  95 Brown (w)
  0 196  32 Bright Green (G)
  0 148  3 Dark Green (g)
21  83  82 Black (K)
15  59  58 Dark Black (k)
119 191 207 Bright Cyan (C)
64 164 185 Dark Cyan (c)
  0 150 255 Bright Blue (B)
  0  72 189 Dark Blue (b)
218  91 214 Magenta (M)
177  84 207 Dark Magenta (m)</pre>
 
==Trivia==
{{Speculation}}
 
* The game code's tendency to refer to object sprites as “tiles” may be an allusion to the phrase “tileset“ as it is used in roguelike circles to refer to optional graphics for a game that can be used in place of the usual text terminal. Unlike some such games, {{Gamename}}'s tiles mode is enabled by default.
 
==See Also==
 
* [[Modding:Text Color Codes & Object Rendering]]
* [[Modding:Tiles]]


* [[Modding: Text Color Codes & Object Rendering]]
[[Category:Concepts]][[Category:Modding Resources]]

Navigation menu