Number of ways painting graph in two colors, such that two nodes of same color are linked by edge

We are given undirected graph of $ N$ nodes and $ M$ edges, we want to count the number of possible ways to paint this graph in $ 2$ colors such that for each two nodes having the same color, there must be an edge between them.

I tried some examples on paper and I always got numbers of the form $ 2^x$ , however I couldn’t see a valid way to find such $ x$ or I couldn’t prove why this is the case.

Does this problem become easier if we are given directed acyclic graph instead of undirected one?

How do the bits of a certain emoji code for all the colors?

I am watching an introductory course on computer science. At one part, it starts talking about unicode and how the bits 11111011000000010. He states that that codes for a laughing/crying face emoji.

However, he later on talks about how the pixels are each created through a number of bytes.He says the bytes 72, 73 and 33 make light red, light green and light blue.

My question is, if there are so many bytes which make up all those pixels in an emoji, how do the bits 11111011000000010 represent all those pixels of colour?

How do stores with large catalog map item image to swatch colors?

So I have thousands of items (all config products) that have a few different colors (simple products) and have about 8 different swatch colors and the only data that have only relation to color is an attribute that has unique color names and the images themselves.

So for example, one color would be Honey or Cream (which would go under white) the only other way to map the colors is the RGB values of the product images themselves.

Is there any extension or software that helps with this process? I would imagine it’s a very common issue for stores looking to use swatches with a large catalog

How to take a screenshot with colors as they appear in night mode

I often find myself in situations where some images have nicer looking colors in the night-mode. I often want to screenshot them. Unfortunately, what I get is the original image.

Is there any way to get the image as it appears on the display?

PS: A lot of times, I want to pick colors from images in night-mode. If it is not possible/easy to take screenshots in night-mode, can you please suggest a way to pick those colors?

Usage of colors and background – Header and Footer | eCommerce

Are there any key UX research references for the usage of colours on an ecommerce website? Looking for any research data so that we can make objective decisions. Our brand colour is a Deep orange and currently the website is painted with orange which can give someone sleepless nights. Any pointers will be great.

How to use image filter for improve colors of whole application rendering

While I publish images of my app UI on instagram I see how f.e. image filter like Clarendon can improve overall feel of colors of my application UI.

It could be quite a lot of effort try to modify all colors and images manually with this filter or even try some other filter but what if I could apply it at runtime ?

It’s iOS app but I was thinking about Android too, that it would be cool if it is possible to somehow alter rendering of whole application user interface and apply such or some other filer similar to Instagram ones at runtime.

Someone has idea about how this could be achieved ?

fbReader app goes monochrome and cannot revert to colors used before

I have a OnePlus 7 Pro model GM1915 which came with w/ Oxygen OS 9.5.8.GM31CB and Android 9.

One app, and only one app, causes the screen to go monochrome; the fbReader ebook reader. When I open an ebook, I see the text is colored, but within a second, it fades to white-on-black.

On prior Androids, specific colors could be assigned to the text. It makes no difference what I set with the OnePlus 7 Pro; any color I want, so long as it’s white. I have tried dozens of files which displayed in color before, including EPUB, MOBI, and PDF files, but all are monochrome.

When I exit the app or task-switch out, color returns slowly in about three seconds.

Uninstalling and reinstalling the app did not solve the problem.

Colors in conditional formatting based on cell hex values [duplicate]

This question already has an answer here:

  • Colorize a cell in Google Sheets based on cell data 3 answers

I am looking for a solution to change the background and font color of a cell based on hex-values in another cell.

I am managing a google spreadsheet for an online basketball league. I have several sheets where there should be formatting based on the team name. For example, in the standings, the cell with the team name should appear in the teams’ colors. With conditional formatting I am able to say (sloppy way:) if team name = xyz -> background color = #aaaaaa, font color = #bbbbbb

I want to have a single sheet where I can “store” these team colors, so if a team has a change in their team art, I don’t have to change the conditional formatting on 100 different sheets, but just on a “color” sheet and everything gets updated after that.

So in the end, I want to have a sheet named “color” (or whatever) where I have 3 rows “team name”, “color 1” and “color 2”. If I change values in these cells, the whole document should update all cells where these team colors are used.

Does anybody have a solution for this?

Google Sheets – How to preserve colors of each series from changing when inserting new data in Chart Editor?

This issue occurs on every chart type. As an example, I have a pie chart created from a long table of data where each column is assigned a specific text color, so each slice of the pie corresponds to the color of that column. I maintain this color coding on various other graphs of the same data to aid in reading the data.

When I insert a new column into the table data, I want to assign it a new color, and have its slice take that color. The new data is inserted into the series of the pie chart. However, the series will not keep their assigned colors, instead the inserted series will take the color of the series that was in its place, causing a domino effect as every series after will shift its color. The last series will have a new color. As such all the slices in the chart after the inserted slice will no longer correspond to the color of its column.

Chart before and after inserting new data

I then have to manually change each series back to its original assigned color which is extremely time-consuming and frustrating every time I want to insert new data.

How can I preserve the color of each slice/series so that the colors don’t all change when I insert new data?