I am doing Ruby_chess project on Odin Project
https://www.theodinproject.com/courses/ruby-programming/lessons/ruby-final-project
And i don't know how to make my chess color properly as Mrs.rlmoser99's
Her code about background:
https://github.com/rlmoser99/ruby_chess/blob/master/lib/displayable.rb
i take the same background color from her code,
but our two chessboards are far too different.
I answered this question for you on The Odin Project's Discord server, but wanted to reply here in case others have a similar problem.
I used the solid unicode symbols for both my black and white pieces, instead of using the solid & the outline symbols. For example, both my kings are " \u265A ". One has the font color black and the other has the font color white.
https://github.com/rlmoser99/ruby_chess/blob/master/lib/pieces/king.rb
Related
I've been trying to create icons without transparent backgrounds, but I keep getting strange results. For example, when I make icons with white backgrounds, their bottom rows will wind up with yellow pixels.
Steps to reproduce:
Create a square PNG file with solid white.
Right-click on any application and select Get Info.
Click-and-drag the PNG file to the application's icon in the upper-left.
Notice the icon has a strip of yellow pixels on the bottom.
I was having trouble creating Finder icons to match the macOS aesthetic, so as a test, I tried making icons without transparency. But then I ended up with a new problem.
It sounds like what you're talking about is a quirk with the Apple Icon Image format. If you read the Wikipedia entry on ICNS files there is this known issue: "if the last value is a repeating byte (see Compression). Potentially, up to 130 pixels can lack the blue channel value." So, in RGB, if you remove B, you get yellow, which is likely what you're seeing.
I've been working in Unity app with Hololens, and I've been using models downloaded from www.poly.google.com; no matter which model I choose, it shows up semi-transparent while running the app on the Hololens. This is how it looks at poly.google.com:
And this is how it looks in the actual Unity app (another model that shows up the same as reference):
The way I import them is just to place the .obj model in a folder within the Unity project, and then use the "Extract materials" feature and assign them:
Is there anything I can do? is it expected? I'd like to show them with strong/original colors. Thanks a lot!
This is expected with dark colours. Holograms don't erase the environment behind them. They add light on top of the background environment, and dark images don't add much light. You can see in your example image that the brighter parts of the holograms are more opaque than the dark parts.
This is discussed in the Designing with Color documentation:
Rendering dark colors - Because of the nature of additive displays, dark colors appear transparent. A solid black object will appear no different from the real world. See Alpha channel below. To give the appearance of “black”, try a very dark grey RGB value such as 16,16,16.
In a dgml file, an expanded Node can have the Background color set which changes the background of the border and title bar. The Foreground color sets the color of the title text.
The body currently seems to be filled with a color that depends on the current color theme selected in the Visual Studio options dialog. This means some people end up with white backgrounds and some black. This causes issues, especially when trying to export as xps to print the diagram. A massive block of black ink is a waste of ink!
How can the color of the body of the expanded Node be specified?
No it cannot. It was a "UI design" decision. Filling the entire group background with color conflicted too much with the VS color scheme. For example, a dark theme editor showing tons of White looks ugly, and a light themed VS showing tons of dark colors also looks ugly...sorry.
Thanks to this question ( Macro to convert equations into images in Powerpoint 2010 ) I have some VBS code that loops through equations in a ppt and converts them to images.
However I'm interested in changing the font color of such equations to black OR the whole background of each equation to black. What I miss is the command to set the font color to black.
I'm starting with low contrast slides and I'm turning them into black on white. All normal text can be changed quickly via color schemes, but equation objects, whose fonts are currently pale yellow, are somehow "locked". To make them visible on a white background I have to either make those fonts black, or turn the background of each equation black. The first option would be preferable, since reading black on white it's easier for me.
Thanks in advance!
I solved by:
batch changing the extension of each presentation to zip with XYplorer;
batch extracting each zip to a unique folder with WinRAR;
locating each equation object (*.emf files) in all the "media" folders of said extracted zips with XYplorer;
batch converting them to *.eps with Adobe Illustrator, modifying all the colors to black;
rezipping each folder and resetting the extension back to pptx.
I am trying to build a windows phone live tile. I want some text on the tile that is the accent colour. What this means is that I need to draw some text on the tile that is transparent. I don't seem to be able to write in the transparent colour.
I have a User Control which is 173 by 173 pixels which I save as a png file. I use this png as the image for the live tile. The transparent bits of the image come out in the current accent colour.
Any ideas how to write in the transparent colour in xaml?
This behaviour is to be expected. In your original question you are effectively saying "Write invisible text on top of the image", and that's what you're getting (imagine writing in invisible ink on a photograph). You effectively need to do one of two things.
1) Figure out which pixels are part of the text you're writing, and "remove" them from the image so the background colour shows through, or
2) Write text in the background colour ({StaticResource PhoneAccentBrush})
EDIT
You can probably achieve what you need using an Opacity Mask. Apologies for only providing that as a link as I haven't done this myself.