Custom fill pattern, SetDrawEnv

This probably can't be done, but maybe someone has a work-around. I have the following drawn rectangle with colored pattern fill mode: 

Window Graph0() : Graph
	PauseUpdate; Silent 1		// building window...
	Display /W=(802,481,1324,877)
	ShowTools/A
	SetDrawLayer UserFront
	SetDrawEnv fillpat= 7,fillfgc= (19675,39321,1),fillbgc= (49151,53155,65535)
	DrawRect 0.2,0.2,0.8,0.8
EndMacro

I'd like to modify the diagonal stroke pattern, such that every third or fourth stroke is not green but has a different color (e.g. orange). The important aspect is that I need a third color in the pattern. I thought I could change this afterwards in Illustrator (when exported as pdf), but it appears as single object which can not be tweaked in that way.

Any ideas are highly appreciated!

 

chozo

I was going to suggest overlaying different patters, but apparently patterns cannot be scaled or otherwise modified in any way. Would using a wave work for your case instead of a drawn pattern? You could create a 2D matrix with your desired pattern, color it accordingly and then add a sub-graph to mimic the desired pattern. For example, here is a simple way to create a diagonal pattern using a wave:

•K0 = 30; K1 = 4
•Make/D/O/N=(1001,1001) pattern = (abs(mod(p+q + K0/2, K0) - K0/2) < K1/2)

Here, K0 is the distance in data points and K1 is the line thickness in data points. This approach is a bit tedious, but would avoid summoning Illustrator after each export.