|
XOR
Nov 29, 2023 19:45:23 GMT
Post by sirbop on Nov 29, 2023 19:45:23 GMT
When I substitute "xor " or "XOR " for the rule name in the formula {print #handle, "rule "; _R2_NOTXORPEN} I get an error.
Any help is appreciated.
|
|
|
XOR
Nov 29, 2023 19:56:23 GMT
Post by Rod on Nov 29, 2023 19:56:23 GMT
#handle “rule XOR”
I think it is a literal command, if you append it as a variable or windows constant it is treated as a variable that needs the correct value. So XOR and OVER are two handy shortcuts.
|
|
|
XOR
Nov 29, 2023 20:19:50 GMT
cundo likes this
Post by tsh73 on Nov 29, 2023 20:19:50 GMT
There is two different ways of using RULE command One is using "rulename" There is only two names "rule XOR" "rule OVER"
Another is using numeric constant Help files shows it as
print #handle, "rule "; _R2_NOTXORPEN but all _R2_ things is actually numeric constants, see for yourself
print _R2_BLACK print _R2_WHITE print _R2_NOP print _R2_NOT print _R2_COPYPEN, "<- the default LB drawing rule" print _R2_NOTCOPYPEN print _R2_MERGEPENNOT print _R2_MASKPENNOT print _R2_MERGENOTPEN print _R2_MASKNOTPEN print _R2_NOTMERGEPEN print _R2_MASKPEN print _R2_NOTMASKPEN print _R2_XORPEN print _R2_NOTXORPEN, "<- the xor LB drawing rule"
So
print #handle, "rule "; _R2_NOTXORPEN is actually the same as
print #handle, "rule "; 10 as
print #handle, "rule 10"
(just tested it. Indeed the same)
|
|
|
XOR
Nov 29, 2023 20:24:26 GMT
Post by sirbop on Nov 29, 2023 20:24:26 GMT
I tried print #view, "XOR" but got an error.
|
|
|
XOR
Nov 29, 2023 20:27:05 GMT
Post by sirbop on Nov 29, 2023 20:27:05 GMT
Thanks "Rule xor" works.
|
|