Questions tagged [palette]

A helper class of Android to extract prominent colors from an image.

A helper class to extract prominent colors from an image.


Palette is an Android feature to support the developer to create a MaterialDesign feeling by generating a colorset of appropriate looking colors based on a bitmap source (app-icon e.g.).

Reference

359 questions
5
votes
2 answers

Gnuplot: transparency of data points when using palette

Is there a way to plot transparent data points when using palette? I currently have the following code: set style fill transparent solid 0.2 noborder set palette rgb 22,13,-22 plot 'mydata.dat' u 1:2:3 ps 0.3 palette My feeling is that transparency…
wpm
  • 77
  • 1
  • 8
5
votes
3 answers

PHP GD palette colors

In PHP GD how can you convert a truecolor image to a palette without losing any colors. With imagetruecolortopallete it doesn't work. I have a function that runs through all the colors and filters them (eg. grayscale). and It doesn't retain all…
Mark Lalor
  • 7,820
  • 18
  • 67
  • 106
5
votes
7 answers

Is there any way to divide rgb color palette?

I'm trying to generate a color palette which has 16 colors. i will display this palette in 4x4 grid. so i have to find a way to rgb color palette which has 255*255*255 colors divided to 16 colors equally and logically. i think it's gonna be a…
Mehmet Fatih Yıldız
  • 1,763
  • 18
  • 25
5
votes
1 answer

Gnuplot default palette

After long time using gnuplot, the default plot palette has changed for me. I would like to change it to the default (red, green...) or at least find where I can use other user-definde palettes without having to define linestyles at the…
Javier
  • 129
  • 2
  • 6
5
votes
2 answers

Delphi. Convert Bitmap image to 2D Array

I have a gif image of 80x40 pixels. The color palette of this image consists of a few similar colors that have different numbers in the palette. How can I build a 2d array where the cell at x,y will be a number of the color in the palette?
Yazon2006
  • 3,684
  • 3
  • 25
  • 36
5
votes
5 answers

"Exclusive" DirectDraw palette isn't actually exclusive

We're maintaining an old video game that uses a full-screen 256-color graphics mode with DirectDraw. The problem is, some applications running in the background sometimes try to change the system palette while the game is running, which results in…
Vladimir Panteleev
  • 24,651
  • 6
  • 70
  • 114
4
votes
4 answers

How is the organization of the 12 Bit RGB color format?

I know that the 12 bit RGB color pallette format , has 4 bit for each color R,G,B. But how is the structure of the raw data i.e. 1.) Does each color have a byte corresponding to it which in turn has 4 padding bits , and 4 data bits for color data…
goldenmean
  • 18,376
  • 54
  • 154
  • 211
4
votes
1 answer

How to convert 256 colors palettized RGBA image data to NSImage

I'm a newbie developer and I need your help with something that is probably trivial for you. I have an image data in this pixel format: 256 colors palettized RGBA. It comes from FFmpeg (PIX_FMT_PAL8) and it's explained this way: PIX_FMT_RGB32 is…
Andrea3000
  • 1,018
  • 1
  • 11
  • 26
4
votes
1 answer

How can I efficiently create a display bitmap of palletized colors in Android graphics?

My Android Tide app displays a nautical chart from a .KAP file. This file format uses a four bit palettized display system, only 10 colors are used. My app decodes the file format into an array of four bit colors. It displays a portion of this array…
user1644002
  • 3,211
  • 3
  • 19
  • 21
4
votes
1 answer

centre palette for plotting - Seaborn

I'm hoping to centre a seaborn palette using a diverting colormap. Specifically, I want zero to signify the divergence. However, may values aren't distributed evenly. So the min and max values aren't the same distance from 0. As such, the palette…
jonboy
  • 415
  • 4
  • 14
  • 45
4
votes
1 answer

AnyChart coloring grid on Android

Im implementing AnyChart LineChart in my Android app and struggling to display coloured grid. What I'd like to achieve in terms of the background (not a chart type) is: https://playground.anychart.com/docs/v8/samples/AGST_Axes_Basic_11 I manage to…
shtas
  • 499
  • 2
  • 17
4
votes
2 answers

How to plot matrix with rgb image?

I want to plot m*n matrix, each element of which is an rgb triple, like in the following gnuplot code snippet (rgb matrix of 3*3): $cross << EODcross 255 0 0 0 0 0 255 0 0 0 0 0 0 0 0 0 0 0 255 0 0 0 0 0 255 0 0 EODcross Black cross on…
Tomilov Anatoliy
  • 15,657
  • 10
  • 64
  • 169
4
votes
2 answers

How to make key colour black in Gnuplot

How can I make the key "symbols" black in colour when using palettes?
A_V
  • 109
  • 9
4
votes
2 answers

How to filter a specific color from a bitmapData object (or byte-array)

I'm looking for an efficient way to filter a specific color from a bitmapData object in ActionScript 3. Currently I use a loop with readByte32(). This takes about a second to process which is unacceptable. I have been trying to get paletteMap()…
user372950
  • 43
  • 1
  • 4
4
votes
3 answers

Android Studio Palette is disabled

I haven't see since when, but my palette doesn't show up, I did some search about it, they say: "Restart the project", but I don't know why when I go in View >> Tool Windows, palette is disabled: I did a update too, to see if it appeared but it…
benjyspider
  • 245
  • 2
  • 4
  • 16
1 2
3
23 24