FiveShipHUN Posted April 27, 2019 Posted April 27, 2019 So, I'm working on a 2D game. There's an image where you can see the areas. Every area has a unique color on the image. (It wasn't made by me.) I want to add few more areas, but I don't know how to pick a color wich are not in the image yet. Here's the image: https://imgur.com/yZYQzzv Quote
Pixey Posted April 27, 2019 Posted April 27, 2019 Hello @FiveShipHUN and Welcome This may be of help to you Quote How I made Jennifer & Halle in Paint.net My Gallery | My Deviant Art "Rescuing one animal may not change the world, but for that animal their world is changed forever!" anon.
FiveShipHUN Posted April 27, 2019 Author Posted April 27, 2019 Can you help me how to use it and solve my problem? Quote
Pixey Posted April 27, 2019 Posted April 27, 2019 Perhaps the easiest way would be for you to use the color picker and click on an existing color on the map. Then open your Color Wheel > click on More And change one of RGB chanels - this way no two colors will be the same. Quote How I made Jennifer & Halle in Paint.net My Gallery | My Deviant Art "Rescuing one animal may not change the world, but for that animal their world is changed forever!" anon.
FiveShipHUN Posted April 27, 2019 Author Posted April 27, 2019 That's unsafe (for me). There's a chance that I'll pick a color what already exists on the map. I need a precise color pick or something else what I can use in this situation. Quote
Ego Eram Reputo Posted April 28, 2019 Posted April 28, 2019 Your image has 3275 individual colors. However, I don't see any gray. This might give you a range of gray colors to choose from. Small test: I uniformly recolored a single sea 'cell' with a random gray-ish color (#939598). Then used the Magic Wand tool with tolerance =10% to select the recolored cell. I got a single selection of 13684 pixels (find the number in the Status Bar). Next I held down Shift (=Global Flood Mode) & reselected the same cell. The number of selected pixels was the same. I concluded that there are no colors with 10% tolerance of #939598. That means that color is safe to use. #2E5996 is another I found by the same method. How many new colors do you need? Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker
Reptillian Posted April 28, 2019 Posted April 28, 2019 (edited) I found a solution to this problem though it only works with G'MIC-QT plugin. Copy and paste this to code[local] or code[global] under Various section of G'MIC QT. iw={w} ih={h} IR=249 IG=211 IB=150 to_rgb $iw,$ih,1,3,[$IR,$IG,$IB] +eq k. n. 0,255 f "i==[255,255,255]?[255,255,255]:[0,0,0]" k. if {ia!=0} v + error "Color exists, pick another color!" fi $iw,$ih,1,3,[$IR,$IG,$IB] k. Then, click update to verify color does not exist. Change IR,IG,IB value to the color you want. By the way, this can be automated, but I'll figure that out. Edited April 28, 2019 by Reptillian Quote G'MIC Filter Developer I am away from this forum for undetermined amount of time: If you really need anything related to my PDN plugin or my G'MIC filter within G'MIC plugin, then you can contact me via Paint.NET discord, and mention me.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.