I wanna show a surface3d in qml by one serie , but i need one property that show under surface3d in dark mode.
under surface3d fill by dark color .
(i dont want use one more serie for taking it in dark, i mean some property like an image or better way that has good performance, because i updating surface in seconds and its not good to use one more serie that depending my own serie.)
surface3d
I used multiSeries and solved .
but i wanted another way to solve it , like an image texture under surface.
Related
On google maps, on the website, is there a way to make it so that all land area is of a gradient color, and no names, text etc shows? so just a gradient color map, with nothing else.
Or is it better to use an image for such a case? The thing is, i need to show pins at specific countries, so idk if its simpler to use an image, and set each pin position separately, or to somehow use google maps, if its possible to set it to gradient color?
any ideas are welcome
You can create your own style map, I suggest you check the documentation
https://developers.google.com/maps/documentation/javascript/styling or https://console.cloud.google.com/projectselector2/google/maps-apis/studio/styles
The second link takes you straight to the management console to create your map.
I would like to draw a cross over an image, with a different color for each pixel depending on the background color, so that the cross is always well visible. So I'm trying to change the Composition Mode of the QPainter, but I can't find an acceptable solution.
I have tried QPainter::CompositionMode_Difference, painting with white. This is quite good because it inverts the destination color, but it doesn't work well if the destination color is a middle gray or similar.
The best solution is to get white if the background is "dark" and black if the background is "light". Is there a way to get this effect using only composition modes of the painter?
What about running the Image Composition Example for yourself, and maybe modifying the source/destination images to better fit your scenario? Maybe QPainter::CompositionMode_Xor is what you want?
An alternative solution, which is even very simple, is to use a white cross with a rather thick black outline. In this case you can ensure the visibility of the cross even in case of rather dark or light background images.
I'm using gnuplot 5.0 with term qt - Qt terminal. Now, when I plot (or splot) whatever I want I have always to follow this post command
set object 1 rectangle from screen 0,0 to screen 1,1 fillcolor rgb "white" behind
to set the background color to white. In fact, as default background color I have "black", so anytime I plot something, e.g.
set term qt
set pm3d
splot sin(x*y)
the output window has a black background, as below
Now, if i export the plot, it shows correctly the white background,
Since having an interactive term (such as qt) but can't interact with it is really annoying, the only possible way is to set manually the background color with the command set object or with the "Terminal configuration" tool, which anyway does not allow to change the color definitely
I've looked around, but nobody seems to know whether there's a command to change definitely the background color in qt terminal, so anytime I plot with tis term I have to change it manually.
Hope someone knows the solution!
Thx!
When you save a graph
gnuplot > save "test.plt"
and you open it, you will see that the file contains ALL the value for all the possible option for your graph.
Those information are the default of your graph and gnuplot under linux reads them in an hidden configuration file locate in the home and called .gnuplot
I suggest you to import to read this it gives you a nice one to use.
Using the above one as a model I created my personal one which is available here
So i'm trying to use the paint bucket in Photoshop CS6 to design a logo for a client of mine.
http://i.stack.imgur.com/Et7OO.png ( What I currently have)
I want to colour the pale bits left with a different shade of green, when I use the paint bucket it covers the whole image, how do I colour in the remaining bits with the colour I want?
when picking the paint bucket you can change the tolerance in the top bar so that it only changes the colours you want. At the moment its most likely at 100 but if you change it to 20 or so it should work for you.
Another possibility could be that you are using the paint bucket on the wrong layer. Make sure you have the layer of piece of the image you want to change selected.
EDIT: Also, you are better off asking this question here. That community can help you better with that type of question.
I have an SCNNode that has its geometry populated from a collada file (.dae) and displays correctly on screen. I can apply materials to the geometry easily enough, however I'd like to change the scale of the material.
I currently populate it with
nodeArray[0].geometry?.firstMaterial!.diffuse.contents="wood.png"
but the scale of the material is too small. While I can edit the png in GIMP or something similar and import it as wood2.png is there any way I can set the material scale programatically?
what do you mean by "too small" ?
Geometries are made of different sources such as the vertices' positions, but also their texture coordinates. These texture coordinates (they belong in [0,1]x[0,1]) are specified per vertex and indicate where to look in the texture.
In your 3D modeler please check that your texture coordinates match what you want (i.e. they cover the whole image i.e. they go from 0 to 1 in very direction), and make sure that your image has no extra transparent margin or other wasted space.
You can have a look at SCNMaterialProperty's contentsTransform property. But please check your model and texture before using it.
You need to open your UV snapshot in an image editing software like Photoshop, scale the wood texture in Photoshop over your UV's, then resave your PNG/JPG, move PNG/JPG back to Xcode