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
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in RGB
- How do I modify this intrinsics code going from YUV420 to RGB24 to output RGBA32
- What is the size difference between Convolutional Neural Networks that take as input an RGB vs. monochrome image?
- Do decimal values affect color channels in CSS?
- Python converting an sRGB value to RGB
- RAW10 to RGB888 conversion
- How many colors in YCbCr JPEG under common conditions 3x8bits?
- Python: grayscale image to RGB image with provided palette
- Kornia outputs only white images
- How do I change my code to fill an excel spreadsheet with colour?
- Converting Front Hand View to Back Hand View or vice versa Using Python
- Patching a PIL image in pytorch tensor and convert back
- Plot camera sensitivity-wavelength distribution based on RGB image
- Trouble changing background of input textbox
- how do I convert a large array of rgb values to a hex array
- Conflicting LAB Results from RGB
Related Questions in PIXEL
- dynamic artistic pixalation of any photo using .net window forms
- Failed assertion: line 3379 pos 12: '!debugNeedsPaint': is not true. I get an error?
- OpenCV & Python - How to convert pixel to millimeters (get object coordinates from arbitrary origin)
- Crop the polygon image with red border
- SDL2 1-bit surface, assign one of two colors in palette to a pixel
- Having issue with dirty flash
- Plotting points in a pixel grid on Julia
- How to directly access video memory of a bitmap in Allegro 5 (for Pascal)
- pixel identification of corners in an image( checkboard)
- How do I use DenseNet121 in MONAI?
- Interpolate missing transparent pixels in an image
- Setting Up Facebook Advanced Matching Manually?
- Fastboot: error: Failed to boot into userspace fastboot; one or more components might be unbootable
- HTML input type="file" not working to pull up camera for Pixel / android 14 combination
- How to make particles move in spirals?
Related Questions in NINTENDO-DS
- Can't get this out of date DS Library to compile with current DevkitPro
- address of file section `.bss' is not within region `ewram' when compiling for Nintendo DS
- Troubling displaying bitmap background using libnds
- Can you compile JavaScript to ARM assembly?
- Nintendo DS. Error Showing a simple sprite using NightFoxLib
- How can I display sprites on screen on the Nintendo DS using nflib?
- Redirect MMIO requests to another address
- Ifstream is failing to load a file and it won't open
- Add pthread.h to nds project makefile
- Programming on the Nintendo DS - issue with collisions
- How to compile boost library for Nintendo DS Lite (arm none eabi g++ compiler)?
- Nintendo 3DS YouTube Embed Support?
- Can an Android device broadcast an SSID?
- Using Visual Studio with TWL/Nitro SDK
- Graphics in c++ coded inefficiently
Related Questions in LIBNDS
- Troubling displaying bitmap background using libnds
- Nintendo DS. Error Showing a simple sprite using NightFoxLib
- How can I display sprites on screen on the Nintendo DS using nflib?
- Garbage on top of screen when displaying text over image in devkit pro
- How would one draw to the sub display of a ds as if it was a framebuffer?
- Drawing an image on subscreen of nds
- 5 Bit RGB (0, 31, 0) to 16 Bit RGB (0, 255, 0)
- Nintendo DS using PAlib
- Any way to execute DS code from cartridge?
- Combining 3D and framebuffer mode on the DS
- Weird striping in tile graphics on Nintendo DS
- Why doesn't keysDownRepeat() in libnds seem to work when calling it multiple times?
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 # Hahtags
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.