So I've been starting DS programming, and I notice that to draw a pixel the color must be a RGB(0, 31, 0). Is there any way to change that to something like RGB(0, 255, 0)?
5 Bit RGB (0, 31, 0) to 16 Bit RGB (0, 255, 0)
5k Views Asked by NDSgrammer At
2
There are 2 best solutions below
5
Bernd Elkemann
On
If you have a green-value g with a range of 0-255, you can convert it to NintendoDS's 0-31 range by using g*31/255. If you are asking us if you can actually do something to make your NintendoDS display a range of 0-255 for each channel the answer is no, but you could use dithering (search-engine it).
Related Questions in C
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in RGB
- How in vb.net can I insert a value on a read only property?
- Store all RGB values in a database
- Convert a 0-1 value to a hex colour?
- Unexpected behavior in my RGB-strip driver code
- Fragment shader does not show any colour when compiled with vs2013
- Matching Xcode color space with Digital Color Meter
- How can I know if the image is in RGB or BGR format?
- How i can set rgb color?
- Read in Bufferedimage pixel values then manipulate each one and write to file
- assign RGB values in java with nested for function
- Why does windows GDI use RGBA format for `COLORREF` instead of BGRA?
- Python skimage.feature.match_template() RGB image
- Why don't images use functions to store rgb values?
- Does RGB supports decimal values?
- Java BufferedImage
Related Questions in PIXEL
- Is it possible to access gmail anonymous profile for a logged in user?
- Excel VBA - Click a specific pixel location in an open IE window
- Java replacing the background of an image
- Treating 2d array data as pixels defining a shape - is it possible to create an inside and a surface?
- Draw on screen using mouse in assembly (emu8086)
- Pixel-based scan for a game AI taking a huge amount of time
- Is there any easy way to rotate the values of a matrix/array?
- Browsers truncate border values to integers
- Can't getImageData() in javascript with gif file; can with FillRect. What's wrong?
- Read in Bufferedimage pixel values then manipulate each one and write to file
- How can you get the intensity of a pixel in java?
- assign RGB values in java with nested for function
- Creating icons and images for an iOS application with points vs pixels
- Integrate affiliateTracking Pixel
- Getting the color of a pixel
Related Questions in NINTENDO-DS
- Can an Android device broadcast an SSID?
- bring malloc() back to its initial state
- gluProject on NDS?
- Can't get this out of date DS Library to compile with current DevkitPro
- Programming on the Nintendo DS - issue with collisions
- 5 Bit RGB (0, 31, 0) to 16 Bit RGB (0, 255, 0)
- C++ to create a Game for Nintendo DS
- Drawing an image on subscreen of nds
- Read header of NDS game?
- Any way to execute DS code from cartridge?
- Nintendo DS and Neural Networks
- Redirect MMIO requests to another address
- How can I display sprites on screen on the Nintendo DS using nflib?
- C "undefined reference", but I specified it in the same file
- Can you compile JavaScript to ARM assembly?
Related Questions in LIBNDS
- 5 Bit RGB (0, 31, 0) to 16 Bit RGB (0, 255, 0)
- Drawing an image on subscreen of nds
- Any way to execute DS code from cartridge?
- How can I display sprites on screen on the Nintendo DS using nflib?
- Troubling displaying bitmap background using libnds
- Garbage on top of screen when displaying text over image in devkit pro
- Nintendo DS. Error Showing a simple sprite using NightFoxLib
- Nintendo DS using PAlib
- Weird striping in tile graphics on Nintendo DS
- Combining 3D and framebuffer mode on the DS
- Why doesn't keysDownRepeat() in libnds seem to work when calling it multiple times?
- How would one draw to the sub display of a ds as if it was a framebuffer?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
5 bit rgb : 31 = 8 bit rgb : 255so
8 bit rgb = (5 bit rgb * 255 / 31)Example:
PS: I think you mean "5 bit RGB to 8 bit RGB" in your title.