Draw/Surface Library Question

Why do we have both?

Draw library description:

Surface library description:

So why not have them just be one library? Is draw using the surface library?

surface is an interface to the raw Source drawing library, draw is something Garry wrote (in Lua using surface) to automate certain tasks and make them easier.
They are separate modules because it’s far easier to make a new module than to bolt things on to another, and less messy.
[Source for draw]

Yeah, I was just thinking that because it finally occurred to me that draw uses arguments and surface is just a bunch of sequenced commands. I’m having a Lua off-day. :xd: