Hello,
I would like to generate an HttpResponse that contains a certain string. For each of the characters in the string I have a background color I want to use.
For simplification, let's assume I can only have shades of green in the background, and that the "background colors" data represents "level of brightness" in the green domain.
For example, a response may be 'abcd', and my "background colors" data may be:
[0.0, 1.0, 0.5, 1.0]
This would mean the first character 'a' needs to have a background of dark green (e.g. 004000), the second character 'b' needs to have a background of bright green (e.g. 00ff00), the third character 'c' needs to have a "middle" brightness (e.g. 00A000), and so on.
I don't want to use a template but rather just return "plain text" response. Is that possible?
If not - what would be the simplest template I could use for that?
Thanks