What is the average color of a star? [closed] - procedural-generation

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
I am trying to procedurally generate point stars to create a starfield background for my game. I want to weight the color production based on an average star's real color. Can anyone point me in the direction of this sort of data?

I found a nice overview here. It shows some real examples. Maybe this will help you.

It is White. To be closer to the real thing apply redshift as the stars are further away and add or remove blue to account for star temperature and age.

Related

GPU Image Framework X-ray Effect [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am making a application that you can apply different effects to photos using GPU Image Framework by Brad Larson.I want to add X-ray Effect filter in GPU image app.Any pointers will be appreciated
You want something like the GPUImageColorInvertFilter:
If that doesn't produce the exact effect you want, you could create a custom filter based on it and have your fragment shader first convert to luminance, and then apply a greenish tint based on the inverse of the pixel's luminance. That would provide the exact effect you show above.
I'll leave the coding of such a shader as an exercise for the reader.

Direct2D and custom shaped window [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Does Direct2D support custom shaped windows? Say, drawing a circle over all other windows. If yes, could anyone give a link to an article or sample of such technique? Thanks.
Yep, it does.
Here is an article with examples, unfortunately, it goes in Russian, so use an online translator:
http://teran.karelia.pro/articles/item_5710.html

Create word cloud (word mosaic) programmatically [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm writing an ios app that can create a word cloud or word mosaic with a pattern selected by user. My question is, how can I calculate the coordinates of each word, considering the sizes of each word is randomly calculated? Or any other approach?
Note that the pattern I want to work on is like this
but, rather like that, my app will fill the white areas with word mosaic, while preserving the photo of the user.
[EDIT]
my algorithm right now is to randomly set the size and position of each words and just put them there. How can I check if each word that I'm putting doesn't intersect with each other and the photo?
Reference: http://www.imagechef.com/ic/word_mosaic/

Is there any difference in functionality between iPhone4 black and white color? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I have to purchase iPhone4 for development purpose,so can anyone suggest me is there any difference between iPhone4 white color and iPhone black color? If yes which one is better choice for development purpose?
Differences include.
1) Slightly modified camera (placement wise) (barely worth mentioning since its same quality).
2) And color.
So for development purposes it does not matter which one you choose.
Source
There is no difference, so you can pick the color you like most.

How can you draw candlestick charts on iOS? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am new to Quartz, and I would like to draw a candlestick chart in iOS, but I don't know how.
How can I draw charts like this? Are there any good examples for iOS?
Core Plot may be able to do it. If not, it's probably a pretty easy thing to add to the Core Plot library.
http://code.google.com/p/core-plot/
You can do it with SwiftCharts, there are 2 candle sticks examples ready to use - one interactive and other not-interactive (with less overhead, in case you don't need interactivity)
(Disclosure: I'm the author)

Resources