From the same article you quoted in stock charts. At the very beginning:
So based on this definition (same article), the price referenced is the high price of first day versus the low price of the second day. There is no mention of "closing price" but that the market must have closed on the second day to discern a gap has resulted.