Dark color on codes problem

I’m reading How to Design Programs using DrRacket.

When I wrote the following codes as

(define (sign x)  (cond  [( > x 0) 1] [( = x 0) 0] [( > x 0) -1])) 

then I get dark color on codes as following

enter image description here

Why did I get it? Can you explain it? Thanks

Note: I’m new here if the tag is false, then can you edit? And can you help with tags?

I am looking for a way to assign numerical values to colors (then interpolate a color scale) and then assign numerical values to comparative colors

Hello may name is Chris

I am completely new to programming (but I love it!! I am learning Swift).

I am currently looking for a solution to the mentioned problem. I’m not sure if it is a ML task or if it is better to do it in the traditional way – maybe by comparing and interpolating RGB values. How I imagine that might be easier to understand in the video.

VIDEO (is there a better way to provide a video?)

The color values ​​below were taken before the adjustment and assigned to the assigned values ​​0, 2, 5, 10, 25, 50 and 100. The round section is taken from a photo (by light and shadow you can see that not every color value brings a perfect match. But that shouldn’t be a problem (I hope so) by comparing the pixels and evaluating the color value with the most matching colour at the end). My spontaneous manual evaluation gives a value that should be around 19-20.

I have already thought back and forth whether it is possible to do the whole thing using color values ​​(e.g. R G and B) but that is not so easy since there should also be many different results depending on the color format I am working with.

On the other hand, I don’t know how to solve it using ML. It would be easy to recognize the exact color values ​​0, 2, 5, 10, 25, 50 and 100 – but how can I have intermediate values ​​determined? What do you think? Which approach is the better one? If you have a tip for me, that I know in which direction I have to think further would be great! And if you have an idea how I can work on my problem I would be so grateful!!! … otherwise I think I will need the coming days to find some solution.

Thank you in advance! Chris

WooComemrce Show selected color beside color variation title and separate Add to cart button from quantity

I need some help doing such changes on my site. First of all, I want to show n selected color label to show beside Color title. and second of all, I want to show Add to cart in a separate row not in the same row with quantity. I am attaching a picture below for the reference. Pardon me if it is a silly question I am learning about WooCoomerce. w

Can the new HatchShading and StippleShading plotstyles be used without color?

I wanted (PlotStyles) HatchShading or StippleShading for figures that will be printed in black and white, but these options end up color by default. I tried combining with a GrayTones ColorFunction, like so:

scap = {Sin[#1] Cos[#2], Sin[#1] Sin[#2], Cos[#1]} & ; {ParametricPlot3D[ {Sin[t]^2 scap[t, p]}, {t, 0, Pi}, {p, 0, 2 Pi}   , Lighting -> "Accent"   , ColorFunction -> "GrayTones"   ],  ParametricPlot3D[ {Sin[t]^2 scap[t, p]}, {t, 0, Pi}, {p, 0, 2 Pi}   , Lighting -> "Accent"   , ColorFunction -> "GrayTones"   , PlotStyle -> HatchShading[0.7, Black]   ],  ParametricPlot3D[ {Sin[t]^2 scap[t, p]}, {t, 0, Pi}, {p, 0, 2 Pi}   , Lighting -> "Accent"   , ColorFunction -> "GrayTones"   , PlotStyle -> StippleShading[]   ]} 

but the GrayTones ColorFunction seems to be ignored when using these PlotStyles.

some plots

Is there a way to avoid the use of a color background in the plot image when using HatchShading or StippleShading?

Creatin Products Database with Multiple Color Variations

I found this Q&A already, that describes my problem and a more or less satisfying answer: Create products with color variants Basically, I want to set up a database for products with different color variations. Here the solution is given of setting up a product-table, a color-table, and a product-color-table as a combination of both.

Unfortunately, most of my products are available in ~180 different colors and we have about 8000 different articles. Additionally, every product has at least one standard color (up to ~5 standard colors) out of the 180 colors in which the product is cheaper than in other colors.

Do I really have to set up a database as described before, which would lead to over 1 Mil articles, or is there another way? I thought of setting up a product-color-table in the sense, that there are 180 columns for each color and I just assign them values like “available, not-available, standard” or so. And then all the other information that don’t really affect the price of the products in yet another table.

But since I’m new to setting up databases I don’t really how I can realise it. Would that actually work? Can anyone give me any tips on how I can solve that and set up my tables?

Thanks in advance

PS: In case my description was confusing here is an example of an onlineshop I found that has the exact thing I want to do: When you tap on “Ciew colour range” you can see all the different colors. But then there are also other articles that are available in less colors or different standard-colors.

Change mobile menu color from red to another color

Hello I am trying to build a website and I am going crazy with mobile menu colors. I was able to change mobile menu color from red to blue. But when I hover from one page to another, previous menu stays as red.

/change color on mobile media query/ @media screen and (max-width: 768px){ .main-navigation .blaskan-main-menu > ul, .main-navigation .blaskan-main-menu > div { background: #000000; }

primary-menu > li > a,.main-navigation ul ul li a {

color: #1966D3; }}

@media screen and ( max-width: 1280px ) { .main-navigation li a:hover, .main-navigation li a:focus, .main-navigation li a:active { color: #1966D3; } } This is the code that I put. So I want all submenu items to be blue including arrow and do not change their color. Could you help me please? www.yalniziyigezdim.net is my website.

Can Prestidigitation color people’s skin?

The Prestidigitation spell in D&D 3.5 specifically says that it is possible to use it to color items (see SRD). Given the wording, “items” can be interpreted either as “inanimate object” or more generally as “physical entity”. It’s therefore not clear if the spell can be used to color a person’s face (for example, as a joke, or as a rough disguise). The fact that the spell description reports that the saving throw is “see text”, but nothing is actually said in the text leaves me even more baffled.