Here is one sentence: People knew how to stain glass a beautiful blue in the middle ages.
Here is another sentence: Stain this table a beautiful walnut color.
Does the term stain mean the same thing in both these sentences?
the same meaning