<a-sky> only display image with side:back - aframe

My sky image will display with material side:back but not with side:front... I'm mystified. Currently showing with side:back here:
https://dour-blouse.glitch.me/
The image is reversed, and I don't want it to be. If side:back is correct, should I just flip the image in photoshop?

you can flip the image using the scale attribute (setting the scale to -1 inverts the image in either axis) , and then switch the visible side:
scale="-1 1 1" material="shader: flat; side: front; src:#nyc"

Related

when creating custom map in Highcharts I want to use a background image however the custom map scales differently

enter image description herePer this page (https://www.highcharts.com/docs/maps/custom-maps) I open inkscape, insert an image I want to draw over and then click on "resize page to selected object" with the image selected. This resizes the page to the size of my background image. I then create the shapes over the image as instructed in the page referenced above. What I want to do is when I paste the svg into the highcharts converter it keeps the shapes as drawn on the page so that I can then insert that same picture into the background of my highchart map on the page and the shapes I have drawn fit perfectly where I drew them on the image in inkscape. Instead it seems like the converter resizes the shapes to best fit the screen. If I didn't want the background image then this would be perfect however with this feature all the images drawn no longer "fit" in the background image where I drew them. Any way to get this to be a 1:1 size conversion so that inserting a background image works?

Inkscape Icon view: half pixel issue

I made a 24×24px square in Inkscape. I don’t understand why does the 24×24 icon view shows me a square with a gray pixel at its bottom? Any idea?
I found the solution: My page’s size was the default A4 and was in millimetres. It should be set in pixels!

How to make a round WKInterfaceButton in watchkit?

iOS can use layer.cornerRadius to make a round UIButton.
Does WKInterfaceButton have this property?
If not, how can I make a round WKInterfaceButton in WatchKit.
If you put an image inside a group, you can then set the radius of the group. This crops the image into a circle. In the picture below, I have:
Group (radius 56)
Group (radius 52)
Image (a square image)
While this example is with an image, you can use the same technique for a button. Previously the dog was clickable as a button so this is doable.
WKInterfaceButton does not have a corner radius property. You can make a circular button by setting a circular image as the button's background image. You can generate the image in code doing something like this: Draw a simple circle uiimage
You don't need an image to make WKInterfaceButton rounded. Instead:
Go to Attributes inspector for the button, and select content type: Group
Inside the button find the group and set its corner radius to whatever you need.
Scroll down the inspector and set both fixed Width and Height to the value equal to the radius doubled. Here you go
You can put whatever you want inside the button, for example a text label. This way you also can make oval buttons.

Rotate rectangle around an axis in flex

I was trying to rotate a group(rectangle) on the bottom right coordinates using flex..
See the image
how to achieve this rotation ?
Have you tried setting originX and originY of the effect to the width and height of the component you're rotating?
Here is a link to a tutorial that shows how to do it:
http://www.flashandmath.com/howtos/rotation/

How do you resize icon images without losing transparency?

I used icon directly in html as below:
<div class="tabbertab" title='<img height="20" width="20" src="<%=contextPath%>/images/icons/bicycle.png"> Bicycle</img>'>
So the icon image got placed besides Bicycle text.
The text is a part of Tab. Which on selection changes color (white to light blue and vice versa).
The background of the icon also reflects this as icon is having a transparent background. And as you can see, I resized the image according to the place where it is going to be displayed.
However, now I got the requirement to use the icon inside javascript code as below:
iconFile = siteroot + '/images/icons/bicycle.png';
anchor.style.backgroundImage = 'url(' + iconFile + ')';
anchor.style.backgroundRepeat = 'no-repeat';
anchor.style.backgroundPosition = '1px 2px';
where siteroot is the path to the root of the application.
Since here I am directly using the icon file in the size it is available. I resized the icon image using mspaint to 20 by 20 pixel.
However, now the icon image seems to be in a white box (and not transparent) of 20 by 20 and so the icon background color is not changing as per the background of the tab it is in.
Are there any good open source tools to resize icon images without losing transparency. I am not having access to photoshop.
The reason you can see the background in the original one is because the icon file has a transparent background.
You say you resized the icon to 20x20 - I am guessing whatever program you used to do this lost the png transparency that was on the original .png file, and turned the background white.
Try using the non-resized image instead (even if it looks wrong) to verify this is correct, then use a css resizing solution or a better program to resize the icon that won't lose the transparency information.

Resources