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
2
votes
1 answer

Programatically step through 24 bit color spectrum, get x amount of average colors

Yes, I AM trying to re-invent the wheel. :-) . I am doing my own image compression, (testing some ideas for transmitting parts of images over tcp). Anyway... I am trying to step through 24 bit rgb color, get a complete linear range, and (step…
Louis van Tonder
  • 3,664
  • 3
  • 31
  • 62
2
votes
1 answer

Bokeh Line Plot: How to assign colors when plotting a large number of lines

I created a multiple line plot in Bokeh using a for loop (code below). In the ouput example there are only two curves. In this case I can set a list of colors for each curve. But, How can I use one of the Bokeh palettes (e.g. Paired) if I need to…
Pablo
  • 167
  • 2
  • 9
2
votes
2 answers

Save colours in a palette in R

I want to save the colours that automatically ggplot function assing to each station in a plot. I want to save the colour assigned to each station in a palette that I can reuse again in others plot: ggplot(DSF_moments, aes(x=year, y=max, group =…
Sss
  • 427
  • 2
  • 8
2
votes
1 answer

GNUPLOT splot color palete matching jetmap

I'm trying to reproduce the following image of rosenbrock function in gnuplot. Source Wikipedia. My understanding is that the image was created using JET colormap in Matlab/Matplotlib. Here is my attempt in gnuplot. Macro MATLAB was sourced from…
forecaster
  • 1,084
  • 1
  • 14
  • 35
2
votes
2 answers

Palette Generator library for online image source doesn't work in Flutter

I have used the following code for get the dominant color of an online image but the paletter color remains null. How can I solve this problem? N:B: If I use local image source AssetImage("source_path"),it works. class HomePageUI extends…
2
votes
0 answers

Palette getDominantColor method , not working correctly in white color image

Palette getDominantColor method , not working correctly in white color image, What am I doing wrong. here are 3 examples, My code, public class MainActivity extends AppCompatActivity { RelativeLayout back_layout; @Override protected void…
yhackup
  • 189
  • 2
  • 15
2
votes
1 answer

How can I Convert grayscale image to false color gradient with imagemagick

input b/w, output with CLUT I want to create false color images from grayscale input images. Similar to the typical false color images produced by nasa from b/w inputs to highlight contrast and texture. I can do this in gimp by applying a custom…
Molly
  • 59
  • 8
2
votes
2 answers

How to create and use very large palette textures for use in opengl?

Details: I have a glsl fragment shader with a uniform texture, "u_MapTexture" with several thousand colors on it (max of about 10k-15k unique rgb values). I also have a uniform palette texture ("u_paletteTexture") that is 16384 × 1 that I want to…
Jax
  • 402
  • 7
  • 24
2
votes
0 answers

Caching the Palette generated from a Bitmap

I am writing an application that displays a grid of images in a RecyclerView. Images are loaded using Glide v4, using the content Uri of that image from the MediaStore. For each image, the corresponding color Palette is generated using…
Thibault Seisel
  • 1,197
  • 11
  • 23
2
votes
1 answer

ggplot2 palette legend does not show

I just started using ggplot2 R package and the following question should be very trivial, however I spent 2h on it without success. I just need to show the scale_fill_distiller legend of the RdBu palette from -1 to 1 (red to blue) on my…
aaaaa
  • 149
  • 2
  • 18
  • 44
2
votes
1 answer

Wrong colors extracted from TBitmap.Palette

I am trying to extract colors from 8 bit bitmap with the usage of TBitmap.Palette. My colors are messed up and I don't know why. I've created a simple visual test to compare results: Code that I am using: procedure TForm36.FormCreate(Sender:…
Wodzu
  • 6,932
  • 10
  • 65
  • 105
2
votes
2 answers

Android Palette returning transparent color for some images

I have an AsyncTask that loads a bitmap from url and uses a Palette to change the background of my Floating Action Button. With most images it works fine but on some it makes the button transparent. Screenshot 1 shows the button color working with…
Daniel Arena
  • 117
  • 11
2
votes
2 answers

In Qt, how to change a slider's background color?

I would like to to change a slider's background color, but this code does not work: QPalette p( ui->verticalScrollBar->palette()); p.setColor( QPalette::Window, Qt::red ); ui->verticalScrollBar->setPalette(p);
javad
  • 83
  • 2
  • 7
2
votes
0 answers

images2gif/Pillow creates garbled image

I've written a program that creates a gif animation using Pillow and images2gif. A short while ago I had everything working perfectly, but decided to switch from 64 bit to 32 bit python as I'd heard there was greater library support. After…
MichaelCG8
  • 579
  • 2
  • 14
2
votes
0 answers

Extracting the dominant colour in an image

I couldn't find a way to do this in R so thought I'd ask. I'm trying to extract the dominant colour from a set of images (in this case, soccer jerseys) and having no luck. The method yielding most success at the moment is to use rPlotter,…
Robert Hickman
  • 869
  • 1
  • 6
  • 22