x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Generating Random Eye Colors

Hi, I'm looking to generate a random linear color value, that is accurate to that of a human eye.

Just generating a random color would work great, if I could filter out the purples, solid reds, etc.

Cheers, Alfie

Product Version: UE 4.17
Tags:
more ▼

asked Aug 24 '17 at 06:47 PM in Blueprint Scripting

avatar image

AlfieLC
44 7 7 12

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

So, two ways... One, random float in range to R, G and B. So three of them. that will create different colors (even fake ones)

The other way, is to get the exact RGB values that you want to show, and add THOSE to an array. OR (probably a bit easier) Just grab a bunch of LinearColor variables with the exact colors you want to show, name them the correct colors, then add THOSE to an array, randomly picking an index out.

more ▼

answered Aug 24 '17 at 07:12 PM

avatar image

VictorBurgos
2.4k 60 27 112

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question